Skip to content

Svelte 5: Error: Illegal invocation #9926

@98mux

Description

@98mux

Describe the bug

Having button inside button caused a strange error, found this while trying to migrate a project from svelte 4 to 5. The bug only happens if the button is inside a button in the same svelte file

Reproduction

https://svelte-5-preview.vercel.app/#H4sIAAAAAAAAA0VPSwrCMBC9SgguWhSq29gKnsO4qOkUgu0kJBNBQu5uEqXO6r15n2Ein_UCnotb5DiuwAW_WssPnN62EP-ChSBzb4JTZdN75bSli0RJCxBTJiCxge08jQTNsT1nJWtzQEXaINOoHKyA1LQsFkXSN7Mf2KmYKUnsu38t9o9AlJMG1aLVc4hbRapnf3rFLE91ecFi7U3V0m2eDeYvVjPpWcPEBbkA6Z4-do99aQABAAA=

Logs

No response

System Info

repl

Severity

annoyance

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions