Closed Moxh3 closed 6 years ago
same problem:
C:\work\dashboard\Ginger\Ginger.Ui\node_modules\globalize-webpack-plugin\ProductionModePlugin.js:147 for (let [locale, chunk] of compiledDataChunks.entries()) { ^ SyntaxError: Unexpected token [ at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:373:25) at Object.Module._extensions..js (module.js:404:10) at Module.load (module.js:343:32) at Function.Module._load (module.js:300:12) at Module.require (module.js:353:17) at require (internal/module.js:12:17) at Object.
(C:\work\dashboard\Ginger\Ginger.Ui\node_modules\globalize-webpack-plugin\index.js:4:30) at Module._compile (module.js:397:26) at Object.Module._extensions..js (module.js:404:10)
` plugins: [
new GlobalizePlugin({
developmentLocale: "ru",
supportedLocales: ["ar", "de", "en", "es", "pt", "ru", "zh"],
messages: "messages/[locale].json",
output: "i18n/[locale].[hash].js",
tmpdirBase: "." // optional for non create-react-apps
})
]`
In your development environment, you need to use Node >= 6.
Error when running webpack with production set to false:
webpack-config.js:
Versions: