当前位置: 首页 > 工具软件 > React-Dev > 使用案例 >

Failed to compile. ./node_modules/react-dev-utils/formatWebpackMessages.js Module not found: Can't

盖昊东
2023-12-01

React 启动报错:

Failed to compile.

./node_modules/react-dev-utils/formatWebpackMessages.js
Module not found: Can't resolve 'D:\react\yunkj\node_modules\babel-preset-react-app\node_modules\@babel\runtime/helpers/slicedToArray' in 'D:\react\yunkj\node_modules\react-dev-utils'
Compiling...

 

执行指令:

npm add @babel/runtime

问题解决。

 

 类似资料: