metaclass-nl / switch-language-example-globalize

An example of dynamically switching language using globalize.js and react-widgets aiming to be compatible with start-react-app.
Other
0 stars 0 forks source link

Errors with globalize webpack plugin 3 #2

Open metaclass-nl opened 5 years ago

metaclass-nl commented 5 years ago

branche react-webpack-plugin3, adapted the configs, using SplitChunksPlugin

in developent: TypeError: modules[moduleId] is undefined occured in en.98937fbd535f200545af.js: (default locale chunk loaded from index.html after common.js chunk) TypeError: _globalize2.default.numberFormatter is not a function main.js line 882 > eval:100:38

In production:

vendor.87274492145e2858fb7b.js:73:67949 TypeError: e[t] is undefined en.87274492145e2858fb7b.js:1:105 TypeError: u.default.numberFormatter is not a function main.87274492145e2858fb7b.js:1:5993 This during initial load, so it is not an issue with dynamic locale chunk loading. Reason to upgrade: npm install emits: npm WARN css-loader@1.0.1 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself. Soluton may impact #3
metaclass-nl commented 5 years ago

To reproduce install according to: https://github.com/metaclass-nl/switch-language-example-globalize/tree/react-webpack-plugin3

metaclass-nl commented 5 years ago

Probably the same as https://github.com/rxaviers/globalize-webpack-plugin/issues/77