encoding - ModuleParseError: Module parse failed: iconv-lite -
my project working fine.. after doing git push, i'm getting error when run gulp
:
{ [error: moduleparseerror: module parse failed: /users/xyz/project/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json line 1: unexpected token : may need appropriate loader handle file type. | {"uchars":[128,16 ....
why happening? have uninstalled , reinstalled module iconv-lite
, doesn't seem help.
i received same exact error. you'll want install json loader module. i'm using json-loader in example.
npm install json-loader --save
then, need add loader webpack.config.js
module: { loaders: [ { test: /\.json$/, loader: "json-loader"} ] }
Comments
Post a Comment