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
网友评论