ChunkLoadError:加载块 node_modules_next_dist_client_dev_noop_js 失败 [英] ChunkLoadError: Loading chunk node_modules_next_dist_client_dev_noop_js failed
问题描述
我一直在关注 Next.js 网站上的基础教程,当我到达
错误 2:
我完全按照所有步骤操作,当我关闭错误弹出窗口时,应用程序运行正常.
如果有人能对此提供任何指导,我将不胜感激!
删除项目根目录下的 .next
文件夹,重新启动项目,然后强制刷新页面(Shift+F5/Cmd+Shift+R) 删除缓存.
这显然是一个缓存问题.浏览完 GH Issues &各种博客文章,我的结论是没有人知道这个与 webpack 相关的错误到底是怎么回事,可能是由 Next.js 的行为引起的.
I've been following the basics tutorial on the Next.js website and when I got to the Global Styles step, I started getting the following runtime error:
ChunkLoadError: Loading chunk node_modules_next_dist_client_dev_noop_js failed.
(error: http://localhost:3000/_next/static/chunks/fallback/node_modules_next_dist_client_dev_noop_js.js)
Error 1:
Error 2:
I followed all the steps exactly and when I close the error pop-up, the app works fine.
If anyone can provide any guidance on this I'd appreciate it a lot!
Delete the .next
folder at the root of your project, relaunch your project, and force-refresh your page (Shift+F5 / Cmd+Shift+R) to remove the cache.
It apparently is a cache issue. After browsing through GH Issues & various blog posts, my conclusion is that nobody knows what the heck is going on with this webpack-related error, probably caused by Next.js's behavior.
这篇关于ChunkLoadError:加载块 node_modules_next_dist_client_dev_noop_js 失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!