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

Still exist WARNING (iconv-loader.js) #22

Open
leekyuchang opened this issue Nov 16, 2016 · 4 comments
Open

Still exist WARNING (iconv-loader.js) #22

leekyuchang opened this issue Nov 16, 2016 · 4 comments

Comments

@leekyuchang
Copy link

leekyuchang commented Nov 16, 2016

This is WARNING message.

WARNING in ./~/lokka-transport-http/~/node-fetch/~/encoding/lib/iconv-loader.js
Critical dependencies:
9:12-34 the request of a dependency is an expression
 @ ./~/lokka-transport-http/~/node-fetch/~/encoding/lib/iconv-loader.js 9:12-34
@Jacke
Copy link

Jacke commented Dec 26, 2016

       {test: /\.json$/, loader: 'json-loader'},

In webpack loaders section
This will fix your problem

@funky0leary
Copy link

Didn't fix it for me. I added that to my loaders, and still see the issue.

@Artexoid
Copy link

Artexoid commented Jul 6, 2017

This solution for webpack2 work for me.

  1. npm i node-noop --save
  2. add NormalModuleReplacementPlugin plugin
plugins: [
  // .... other plugins
  new webpack.NormalModuleReplacementPlugin(
    /\/iconv-loader$/, 'node-noop',
  ),
],

this link help me https://berryware.wordpress.com/tag/iconv-loader/

@erikvullings
Copy link

@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');

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

5 participants