首页 > 解决方案 > WebPack 升级

问题描述

我更新了下面的一些包,我得到了这个错误。升级后我无法运行该应用程序。你对这个问题有什么想法吗?我怎么解决这个问题?

在此处输入图像描述

构建命令是

 webpack --mode production ./frontend/src/index.js --output-path ./frontend/static/frontend/main.js

我得到了这个错误。我没有更改任何文件的路径。

errno: -4058,
code: 'ENOENT',
syscall: 'open',
path: 'C:\\BSH\\Bitbucket\\chatbot_platform\\frontend\\static\\frontend\\main.js\\main.js'
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! bsh_chatbot_dj@1.0.0 build: `webpack --mode production ./frontend/src/index.js --output-path ./frontend/static/frontend/main.js`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the bsh_chatbot_dj@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

标签: node.jsnpmwebpackwebpack-cli

解决方案


推荐阅读