Issue: withastro/astro#1237
CodeSandbox: https://codesandbox.io/s/github/jonathantneal/astro-namespace-issue
When using the attribute namespace on, the entire project throws.
Usage:
<button on:click>
click me
</button>Error:
node_modules/astro/dist/compiler/codegen/index.js:665
throw new Error("Unexpected (enter) node type: " + node.type);
^
Error: Unexpected (enter) node type: EventHandler
at Object.enter (node_modules/astro/dist/compiler/codegen/index.js:665:19)
at AsyncWalker.visit (node_modules/astro/node_modules/estree-walker/src/async.js:49:22)
at AsyncWalker.visit (node_modules/astro/node_modules/estree-walker/src/async.js:79:25)
at async AsyncWalker.visit (node_modules/astro/node_modules/estree-walker/src/async.js:79:14)
at async AsyncWalker.visit (node_modules/astro/node_modules/estree-walker/src/async.js:79:14)
at async AsyncWalker.visit (node_modules/astro/node_modules/estree-walker/src/async.js:79:14)
at async asyncWalk (node_modules/astro/node_modules/estree-walker/src/index.js:34:9)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
git clone git@github.com:jonathantneal/astro-namespace-issue.gitandcd astro-namespace-issueyarnyarn start- Visit the page (e.g.
http://localhost:3000/) - Error!
Unexpected (enter) node type: EventHandler