What package manager are you using?
npm
What operating system are you using?
Mac
Describe the Bug
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.
Steps to Reproduce
git clone [email protected]:jonathantneal/astro-namespace-issue.git and cd astro-namespace-issue
yarn
yarn start
- Visit the page (e.g.
http://localhost:3000/)
- Error!
Unexpected (enter) node type: EventHandler
Link to Minimal Reproducible Example (Optional)
https://github.com/jonathantneal/astro-namespace-issue
What package manager are you using?
npm
What operating system are you using?
Mac
Describe the Bug
When using the attribute namespace
on, the entire project throws.Usage:
Error:
Steps to Reproduce
git clone [email protected]:jonathantneal/astro-namespace-issue.gitandcd astro-namespace-issueyarnyarn starthttp://localhost:3000/)Unexpected (enter) node type: EventHandlerLink to Minimal Reproducible Example (Optional)
https://github.com/jonathantneal/astro-namespace-issue