之前一切都工作正常,但有一天早上我开始收到此错误。我没有更改项目中的任何内容,也没有使用新版本的 Node.js。
我尝试了所有方法 - 完全拆除 Node.js 并重新安装它,但它没有解决问题。有趣的是,在线 IDE 中一切正常。
我知道这是因为情感风格而发生的。如果我删除 js 中的 css - 一切正常。
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
info - Loaded env from C:\Users\user\Downloads\zigi-ui-master\.env
event - compiled client and server successfully in 631 ms (203 modules)
wait - compiling /_error (client and server)...
event - compiled client and server successfully in 93 ms (204 modules)
warn - Fast Refresh had to perform a full reload. Read more: https://nextjs.org/docs/basic-features/fast-refresh#how-it-works
wait - compiling /...
error - ./pages/index.jsx …
Run Code Online (Sandbox Code Playgroud)