我的 next.js 应用程序在我的机器上运行,并且在部署在 Vercel 上时可以正常工作,但现在在 Vercel 上构建时失败并出现以下错误:
我试过删除 node_modules 并运行npm install几次,但没有任何乐趣。
任何帮助将不胜感激。谢谢!
运行“NPM运行构建” 20:43:24.926
tdwcks@1.0.0构建/ vercel / 5ccaedc9 20:43:24.926
下一个构建20:43:24.967
内部/模块/ CJS / loader.js:983 20:43:24.967
掷呃; 20:43:24.967
^ 20:43:24.967
错误:找不到模块“../build/output/log” 20:43:24.967
需要堆栈:20:43:24.967
- /vercel/5ccaedc9/node_modules/.bin/接下来 20:43:24.967
在 Function.Module._resolveFilename (internal/modules/cjs/loader.js:980:15) 20:43:24.967
在 Function.Module._load (internal/modules/cjs/loader.js:862 :27) 20:43:24.967
在 Module.require (internal/modules/cjs/loader.js:1042:19) 20:43:24.967
在需要 (internal/modules/cjs/helpers.js:77:18) 20:43:24.967
在对象。(/vercel/5ccaedc9/node_modules/.bin/next:2:46) 20:43:24.967
在 Module._compile (internal/modules/cjs/loader.js:1156:30) 20:43:24.967
在 Object.Module ._extensions..js (internal/modules/cjs/loader.js:1176:10) 20:43:24.967
at Module.load (internal/modules/cjs/loader.js:1000:32) 20:43:24.967
at Function.Module._load (internal/modules/cjs/loader.js:899:14) 20:43:24.967
在 Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12) { 20:43 :24.967 …