I am getting three warning messages when importing request
in a barebone webpack project. A minimal example to reproduce the bug is available on GitHub (run
Solved with npm install request@2.79.0 --save
According to the authors of ajv
, the issue will likely be resolved in the latest version of request
in a few weeks' time.
Replace this
new webpack.ContextReplacementPlugin(
/angular(\\|\/)core(\\|\/)@angular/,
helpers.root('./src'), // location of your src
{} // a map of your routes
),
with this-
new webpack.ContextReplacementPlugin( /(.+)?angular(\\|\/)core(.+)?/, root('./src'), {} )
This warning can be linked to packages injections in (dependancies or devDependencies).
If the problem suddenly appears, check the last modification in your package.json.
Consider removing package-lock.json if you plan to relaunch an npm install
.