错误:> 由于 webpack 错误,构建失败

时间:2021-03-17 20:22:13

标签: reactjs npm next.js

当我尝试运行 npm run build 时无法构建代码或启动 React 应用程序。这是我得到的错误:

> Build error occurred
Error: > Build failed because of webpack errors
    at /Users/clare/flights-gui/node_modules/next/dist/build/index.js:15:918
    at async Span.traceAsyncFn (/Users/clare/flights-gui/node_modules/next/dist/telemetry/trace/trace.js:5:584)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! flights-gui@1.0.0 build: `next build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the flights-gui@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:
npm ERR!     /Users/clare/.npm/_logs/2021-03-17T20_18_10_288Z-debug.log

0 个答案:

没有答案