ModuleParseError: Module parse failed: iconv-lite

My project was working perfectly fine.. But after doing a git push, I'm suddenly getting an error when I run gulp:

{ [Error: ModuleParseError: Module parse failed: 
Line 1: Unexpected token :
You may need an appropriate loader to handle this file type.
| {"uChars":[128,16 ....

Why is this happening? I have uninstalled and reinstalled this module iconv-lite, but it doesn't seem to help.


I received this same exact error. You'll want to install a JSON loader module. I'm using json-loader in this example.

npm install json-loader --save

Then, you need to add this loader to your webpack.config.js

module: {
    loaders: [
      { test: /\.json$/, loader: "json-loader"}

I had this dependency by an indirect dependency on node-fetch and fixed the issue by adding the following to my webpack.config.js:

externals: {
    'node-fetch': 'fetch'

Deleting the file solved the issue.

Need Your Help

What became of MSXML 4.0?

xml msxml msxml6

i have a dependancy on MSXML 4.0.

C as an object oriented language


Could you suggest a syntax for the C language to use it in a similar way than an object-oriented language? I know that they cannot be the same and that some keywords aren't present in C, but I'm