我安装了最新的react和next.js版本。在用NPX create-next-app创建了一个新项目后,我在vs代码中做的第一件事是"npm run dev"我得到了警告:警告-快速刷新必须执行一个完整的重新加载。阅读更多:https://nextjs.org/docs/messages/fast-refresh-reload
现在我没有写一行代码,终端卡住了。我试着重新安装react,next.js,我试着重新构建包,我不明白是什么问题。
如果你们能帮忙的话会很有帮助的。谢谢。
编辑:
我运行NPM后的控制台输出
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
event - compiled client and server successfully in 498 ms (166 modules)
wait - compiling /_error (client and server)...
event - compiled client and server successfully in 85 ms (167 modules)
warn - Fast Refresh had to perform a full reload. Read more:
https://nextjs.org/docs/messages/fast-refresh-reload
wait - compiling / (client and server)...
event - compiled client and server successfully in 140 ms (170 modules)
warn - Fast Refresh had to perform a full reload. Read more: https://nextjs.org/docs/messages/fast-refresh-reload
然后卡住了,所以我按ctrl+c终止进程。
我使用react版本:18.2.0next.js版本:13.1.1
打开链接http://localhost:3000/
打开此链接后,npm run dev
终端进程恢复,不知何故它为我工作。