美文网首页
next.js使用create-next-app项目初始化报错

next.js使用create-next-app项目初始化报错

作者: 溜溜的阳光 | 来源:发表于2021-12-20 10:44 被阅读0次

    react-refresh-runtime.development.js?1816:465 Uncaught TypeError: Cannot read property 'forEach' of undefined

        at Object.injectIntoGlobalHook (react-refresh-runtime.development.js?1816:465)

        at eval (runtime.js?142d:9)

        at Object../node_modules/@next/react-refresh-utils/runtime.js (react-refresh.js?ts=1606895817160:24)

        at __webpack_require__ (webpack.js?ts=1606895817160:873)

        at checkDeferredModules (webpack.js?ts=1606895817160:46)

        at webpackJsonpCallback (webpack.js?ts=1606895817160:33)

        at webpack.js?ts=1606895817160:1015

        at webpack.js?ts=1606895817160:1023

    解决方法

    卸载掉 chrome 浏览器的 react-developer-tool 插件就好了。。。(ps: react-developer-tool 目前官方已经存档,不在更新)

    参考:https://blog.csdn.net/liuxingyu_1/article/details/110485007

    相关文章

      网友评论

          本文标题:next.js使用create-next-app项目初始化报错

          本文链接:https://www.haomeiwen.com/subject/vhaafrtx.html