Webpack – Critical dependency: the request of a dependency is an expression
Webpack – Critical dependency: the request of a dependency is an expression
Solved with npm install [email protected] --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), {} )
Webpack – Critical dependency: the request of a dependency is an expression
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
.
Related posts on Web pack :