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

前端 未结 3 1238
野趣味
野趣味 2020-12-14 13:44

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

3条回答
  •  眼角桃花
    2020-12-14 14:33

    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.

提交回复
热议问题