Open leekyuchang opened 8 years ago
{test: /\.json$/, loader: 'json-loader'},
In webpack loaders section This will fix your problem
Didn't fix it for me. I added that to my loaders, and still see the issue.
This solution for webpack2 work for me.
plugins: [
// .... other plugins
new webpack.NormalModuleReplacementPlugin(
/\/iconv-loader$/, 'node-noop',
),
],
this link help me https://berryware.wordpress.com/tag/iconv-loader/
@Artexoid Thanks for the tip! When using webpack + typescript, I also had to import he NormalModuleReplacementPlugin
as in:
const { optimize: { CommonsChunkPlugin }, ProvidePlugin, NormalModuleReplacementPlugin } = require('webpack');
This is WARNING message.