globalize-webpack-plugin icon indicating copy to clipboard operation
globalize-webpack-plugin copied to clipboard

Used in conjunction with webpack.DllReferencePlugin throw an error in prod mode

Open Guymestef opened this issue 8 years ago • 2 comments

Conf: Webpack 3.7.1 / globalize-webpack-plugin 2.0.1 Error: TypeError: request.replace is not a function at GlobalizeCompilerHelper.isCompiledDataModule (\node_modules\globalize-webpack-plugin\GlobalizeCompilerHelper.js:87:44)

ebpack conf: plugins: [ new GlobalizePlugin({ production: true, developmentLocale: 'en', // locale to be used for development. supportedLocales: ['en', 'fr', 'es', 'de'], // locales that should be built support for. messages: 'ClientApp/messages/[locale].json', // messages (optional) output: 'globalize-compiled-data-[locale].[hash].js', // build output. }), new webpack.DllReferencePlugin({ context: __dirname, manifest: require('./wwwroot/dist/vendor-manifest.json') }) ]

Guymestef avatar Oct 13 '17 15:10 Guymestef

Hitting the same. @Guymestef Any luck?

cwgorman avatar Dec 11 '17 21:12 cwgorman

@cwgorman I ended up replacing globalize with i18next + momentjs

Guymestef avatar Dec 12 '17 16:12 Guymestef