reactjs 未处理的运行时错误|TypeError:无法读取null的属性(阅读'CodeMirror')

yv5phkfx  于 2022-11-22  发布在  React
关注(0)|答案(4)|浏览(164)

Error image on chrome
使用Next.js 13
我得到这个错误的谷歌浏览器,我如何修复它(或者也许只是忽略它)。
我没有使用Codemirror,也不想使用它。
我试过:

  • 正在删除“.next”、“节点模块”、“包锁.json”
  • npm缓存清除--强制
  • npm安装程序; npm运行偏差
$npm list 
├── @types/node@18.11.9
├── @types/react-dom@18.0.9
├── @types/react@18.0.25
├── autoprefixer@10.4.13
├── eslint-config-next@13.0.3
├── eslint@8.27.0
├── framer-motion@7.6.7
├── next@13.0.3
├── postcss@8.4.19
├── react-dom@18.2.0
├── react-simple-typewriter@4.0.5
├── react-social-icons@5.15.0
├── react@18.2.0
├── tailwindcss@3.2.4
└── typescript@4.9.3

终点站:

ready - started server on 0.0.0.0:3000, url: http://localhost:3000
event - compiled client and server successfully in 1259 ms (154 modules)
wait  - compiling...
event - compiled successfully in 53 ms (130 modules)
wait  - compiling / (client and server)...
event - compiled client and server successfully in 102 ms (183 modules)
wait  - compiling /_error (client and server)...
event - compiled client and server successfully in 102 ms (184 modules)
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)
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)
u5rb5r59

u5rb5r591#

禁用名为Blackbox的chrome扩展,它正在工作

gcmastyq

gcmastyq2#

可能是以下内容:如果是,则返回一个值。只需要:(更新的模块和更新的模块长度);

qyuhtwio

qyuhtwio3#

如果您正在使用此chrome扩展:黑盒-选择。复制。粘贴和搜索,你必须禁用它。

slwdgvem

slwdgvem4#

禁用黑盒chrome扩展肯定会起作用

相关问题