How to remove the SW Precache? --> error on *npm install*
Closed this issue · 1 comments
Richacinas commented
I'm trying to remove the sw-precache-webpack-plugin
because I don't need this feature on my app, however, I'm getting an error on install (and the build that comes with it).
I just remove the dependency from package.json
and the block of the plugin SWPrecacheWebpackPlugin
configuration in webpack/prod.config.js
.
Now, when running:
npm install
I'm getting:
10% building modules 1/1 modules 0 active(node:23066) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead
66% building modules 512/547 modules 35 active …ot-example/node_modules/qs/lib/utils.jsnode[23066]: ../src/node_file.cc:943:void node::fs::Stat(const v8::FunctionCallbackInfo<v8::Value>&): Assertion `(argc) == (4)' failed.
1: 0x8daaa0 node::Abort() [node]
2: 0x8dab75 [node]
3: 0x91abea [node]
4: 0xb5faef [node]
5: 0xb60659 v8::internal::Builtin_HandleApiCall(int, v8::internal::Object**, v8::internal::Isolate*) [node]
6: 0xd2aa55dbe1d
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! react-apollo-spa-cucumber@0.9.0 build: `cross-env NODE_ENV=production webpack --colors --display-error-details --config=webpack/prod.config.js`
npm ERR! Exit status 1
Richacinas commented
Fixed by bumping these two PostCSS libraries in package.json to the versions that you can read below. I don't know if only one of them is needed to be updated... but here they are:
"postcss": "~7.0.16",
"postcss-cssnext": "~3.1.0"
Tough one.. I hope it helps someone else!