You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
✅ I am on the latest version of Snowpack & all plugins.(3.3.7)
✅ I use package manager npm.
✅ I run Snowpack on OS Mac.
✅ I run Snowpack on Node.js v12+(v14.16.1)
Describe the bug
When I use mobx's decorator in the file, I get an error.
[16:34:25] [snowpack] Error: Transform failed with 1 error:
/project/react-snowpack3/src/pages/todoView/index.jsx:4:0: error: Unexpected "@"
[16:34:25] [@snowpack/plugin-esbuild] [500] /src/pages/todoView/index.js
A quick, clear, concise summary of what the bug is.
Expected behavior
Support for decorator.
The text was updated successfully, but these errors were encountered:
Hi @mogiihu. Decorators are currently a Stage 2 proposal which means they’re technically not JavaScript, which means you have to transform your JS in order to use them. By default, Snowpack does not support experimental JS features, because there are differing opinions on how they should be transformed (again, because it’s not yet implemented).
Bug Report Quick Checklist
Describe the bug
When I use mobx's decorator in the file, I get an error.
[16:34:25] [snowpack] Error: Transform failed with 1 error:
/project/react-snowpack3/src/pages/todoView/index.jsx:4:0: error: Unexpected "@"
[16:34:25] [@snowpack/plugin-esbuild] [500] /src/pages/todoView/index.js
A quick, clear, concise summary of what the bug is.
Expected behavior
Support for decorator.
The text was updated successfully, but these errors were encountered: