Hello,
For the last few hours I tried to integrate meteor 3.0 with angular 17 (using vite) but I keep running into this issue when running “meteor”:
While building for web.browser.legacy:
node_modules/@angular/compiler/fesm2022/compiler.mjs:
/client/node_modules/@angular/compiler/fesm2022/compiler.mjs: Static class blocks are
not enabled. Please add `@babel/plugin-transform-class-static-block` to your configuration.
I’ve been trying a number of solutions but I still can’t wrap my head around a fix. Is there a way to fix this?
Thanks
Please is there any update or progress you have achieved??
I don’t use Angular, but did you try to add this plugin
to your package.json (as a dev dependency) and then to your babel config? I think that’s what the error message is suggesting.
From what I tested and reasearched, you cant use angular 13+ with meteor 3.0/2.16 since it requires you to develop and use a meteor plugin at build time.
Since angular 14+, it dropped support for cjs exports, moving only to esm, which is not currently supported in meteor at build time, but there is a pull request opened: Resolve package.json exports by zodern · Pull Request #13520 · meteor/meteor · GitHub
Hopefully zodern can implement this and we can use the angular compiler in a build plugin in meteor, but until then, there seems to be no way for angular 19 to work with meteor 3.0.