有人知道这个错误的原因吗?
warn - Fast Refresh had to perform a full reload. Read more: https://nextjs.org/docs/basic-features/fast-refresh#how-it-works
TypeError: Cannot read properties of null (reading 'length')
at eval (webpack-internal:///./node_modules/next/dist/client/dev/error-overlay/hot-dev-client.js:262:55)
我尝试注释掉页面中运行的任何组件并从头开始创建一个新的 NextJS-ts 项目,但错误仍然存在。
是的,看起来像是下一个 13 个错误。据我所知,它似乎没有破坏任何东西。
大概是下面这个const hasUpdates = Boolean(updatedModules.length);
只是需要const hasUpdates = Boolean(updatedModules && updatedModules.length);
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)