Webpack - Critical dependency: the request of a dependency is an expression

一世执手 提交于 2019-12-03 00:54:25

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'), {} )
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!