I am trying to build using Webpack and this plugin with config as follows:
new GlobalizePlugin({
production: process.env.NODE_ENV === 'production',
developmentLocale: 'es',
supportedLocales: [ 'en', 'de', 'es' ],
output: 'i18n/[locale].[hash].js'
}),
and in my code all I'm doing is var Globalize = require('globalize');
During the build process I get a huge amount of errors, like:
resolve 'file' cldr in /Users/zach/dev/entry-point/code/node_modules
resolve file
/Users/zach/dev/entry-point/code/node_modules/cldr doesn't exist
/Users/zach/dev/entry-point/code/node_modules/cldr.webpack.js doesn't exist
/Users/zach/dev/entry-point/code/node_modules/cldr.web.js doesn't exist
/Users/zach/dev/entry-point/code/node_modules/cldr.js doesn't exist
/Users/zach/dev/entry-point/code/node_modules/cldr.json doesn't exist
Looking at the Globalize repo issues, it seems like this plugin was created to fix the issues I'm having, but for some reason it's not working for me.
I am trying to build using Webpack and this plugin with config as follows:
and in my code all I'm doing is
var Globalize = require('globalize');During the build process I get a huge amount of errors, like:
Looking at the Globalize repo issues, it seems like this plugin was created to fix the issues I'm having, but for some reason it's not working for me.