Reactjs 无法读取属性';流行音乐';未定义的| | next.js的

Reactjs 无法读取属性';流行音乐';未定义的| | next.js的,reactjs,next,Reactjs,Next,$npm运行构建 > learn-starter@0.1.0 build > next build (node:31220) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at C:\Users\murtu\OneDrive\Desktop\m

$npm运行构建

> learn-starter@0.1.0 build
> next build

(node:31220) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at C:\Users\murtu\OneDrive\Desktop\myProject\nextjs_practice\new_practice\nextjs-blog\node_modules\postcss\package.json.       
Update this package.json to use a subpath pattern like "./*".
(Use `node --trace-deprecation ...` to show where the warning was created)
info  - Creating an optimized production build    
Failed to compile.

chunk 30cd56ec8b4292fd1d19f6bfd4b67b1689d06305_CSS
static/css/851b1bf4ba9315e79ff2.css
Cannot read property 'pop' of undefined


> Build error occurred
Error: > Build failed because of webpack errors
    at C:\Users\murtu\OneDrive\Desktop\myProject\nextjs_practice\new_practice\nextjs-blog\node_modules\next\dist\build\index.js:15:918
    at async C:\Users\murtu\OneDrive\Desktop\myProject\nextjs_practice\new_practice\nextjs-blog\node_modules\next\dist\build\tracer.js:1:525
npm ERR! code 1
npm ERR! path C:\Users\murtu\OneDrive\Desktop\myProject\nextjs_practice\new_practice\nextjs-blog
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c next build

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\murtu\AppData\Local\npm-cache\_logs\2020-12-24T13_03_26_358Z-debug.log
我正面临着这个问题,因为我已经尝试了许多来自互联网的解决方案,比如创建next.config.js 当我使用这个
npm-run-dev
有人能帮我吗这里有什么问题吗 正如我所说的,这个项目在
npm运行dev
上运行得非常好。
我真的厌倦了这个问题,请帮我解决。

通过运行npm cache clean--force来清除你的npm缓存
然后删除节点模块文件夹和npm锁文件。运行npm run build并尝试构建它

通过运行npm cache clean--force清除你的npm缓存
然后删除节点模块文件夹和npm锁文件。运行npm运行构建并尝试构建它

仍然不工作,再次出现相同的错误注入不工作,再次出现相同的错误您是否成功克服了此问题?面对同样的问题。不清楚原因可能是什么。你是否设法克服了这一点?面对同样的问题。不清楚原因可能是什么。