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
{{ message }}
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.
In 7.14.0 @babel/preset-env made private fields and methods part of the default plugins. When you attempt to use the glimmer preset in conjunction with babel-preset-env, you we get a error like the following:
If you are using ["@babel/plugin-proposal-decorators", { "legacy": true }], make sure it comes *before* "@babel/plugin-proposal-class-properties" and enable loose mode, like so:
["@babel/plugin-proposal-decorators", { "legacy": true }]
["@babel/plugin-proposal-class-properties", { "loose": true }]
45 | static template = hbs`
46 | <img width={{this.width}} height={{this.height}} data-delayed-url={{this.lazyUrl}} src={{this.url}} ...attributes /> `;
> 47 | @service
| ^
Steps to reproduce:
In this repo run yarn upgrade @babel/preset-env
yarn start
See the following error
ERROR in ./packages/example-apps/rehydration/src/MyComponent.ts
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: /Users/chietala/Code/glimmer.js/packages/example-apps/rehydration/src/MyComponent.ts: Decorators are not enabled.
If you are using ["@babel/plugin-proposal-decorators", { "legacy": true }], make sure it comes *before* "@babel/plugin-proposal-class-properties" and enable loose mode, like so:
["@babel/plugin-proposal-decorators", { "legacy": true }]
["@babel/plugin-proposal-class-properties", { "loose": true }]
5 |
6 | class MyComponent extends Component {
> 7 | @tracked count = 1;
| ^^^^^^^^^^^^^^^^^^^
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In 7.14.0 @babel/preset-env made private fields and methods part of the default plugins. When you attempt to use the glimmer preset in conjunction with babel-preset-env, you we get a error like the following:
Steps to reproduce:
yarn upgrade @babel/preset-env
yarn start
The text was updated successfully, but these errors were encountered: