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
Seems like Angular 12 is now also having troubles compiling @fluent
./node_modules/@fluent/bundle/esm/index.js:9:0 - Error: Module parse failed: 'import' and 'export' may appear only with 'sourceType: module' (9:0)
File was processed with these loaders:
* ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js
* ./node_modules/@angular-devkit/build-optimizer/src/build-optimizer/webpack-loader.js
* ./node_modules/@ngtools/webpack/src/ivy/index.js
You may need an additional loader to handle the result of these loaders.
| *
| */
> export { FluentBundle } from "./bundle.js";
| export { FluentResource } from "./resource.js";
| export { FluentType, FluentNumber, FluentDateTime } from "./types.js";
hi all! We are a bit low on resources temporarily (most of the focus is on fluent-rs and MessageFormat 2.0 work), so I can't promise when I'll get to this bug.
If anyone can provide a PR, I'll be happy to review and merge it
Activity
[-]Support Node 14's native ES module[/-][+]Support Node 14's native ES module imports[/+]stasm commentedon May 5, 2020
https://nodejs.org/api/esm.html#esm_dual_commonjs_es_module_packages has a good discussion of the available approaches. I think the most promising would be the
wrapper.mjsapproach.ranisalt commentedon Apr 27, 2021
I think the packages export all that's needed for both module and commonjs imports, so omitting
typeshould sufficetobias47n9e commentedon May 14, 2021
Seems like Angular 12 is now also having troubles compiling
@fluentzbraniecki commentedon May 16, 2021
hi all! We are a bit low on resources temporarily (most of the focus is on fluent-rs and MessageFormat 2.0 work), so I can't promise when I'll get to this bug.
If anyone can provide a PR, I'll be happy to review and merge it
Demivan commentedon May 28, 2021
Webpack 5 fix: #556