Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Guymestef opened this issue Oct 13, 2017 · 2 comments

Comments

@Guymestef
Copy link

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')
})
]

@cwgorman
Copy link

Hitting the same. @Guymestef Any luck?

@Guymestef
Copy link
Author

@cwgorman I ended up replacing globalize with i18next + momentjs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants