Open BoussonKarel opened 1 year ago
It was resolved by the author of strict-event-emitter: https://github.com/open-draft/strict-event-emitter/releases/tag/v0.4.4 by removing the class private methods, but that does not resolve this ember-auto-import bug I guess.
It fails now in the same way after msw
update to v2.0.
@ef4 do you have any thoughts on this?
The legacy decorators plugin makes several other class-feature plugins mandatory, including @babel/plugin-proposal-private-methods
.
We add legacy decorators here: https://github.com/embroider-build/ember-auto-import/blob/843ed86e7fc61c5c29c012738b905a551cb4d49a/packages/ember-auto-import/ts/package.ts#L539
That same spot should add the other plugins that legacy-decorators require. We already have @babel/plugin-proposal-class-properties
but we should add @babel/plugin-proposal-private-methods
and @babel/plugin-transform-class-static-block
.
@ef4 please take a look at https://github.com/embroider-build/ember-auto-import/pull/596
Issue
Hi, I just updated msw from 0.49.2 to 0.49.3 and now my build started failing:
Error
error.dump.ed21c83f59006d777e2b06b69c6cb6d1.log
Reproduction
I have reproduced the error in a new Ember addon: Broken build: https://github.com/BoussonKarel/msw-auto-import-bug Working build: https://github.com/BoussonKarel/msw-auto-import-bug/tree/msw@0.49.2