类型错误:无法读取 null 的属性(读取“CodeMirror”)

Jer*_*art 2 google-chrome localhost codemirror next.js

我的 NextJS (13) 应用程序似乎遇到了问题。不知何故,Chrome 给了我下一个错误:

类型错误:无法读取 null 的属性(读取“CodeMirror”)

我的应用程序中任何输入字段的每个条目/事件都会发生这种情况,直到昨天我才遇到任何问题。我没有对我的代码进行任何可能对这些输入字段产生影响的更改。Safari 和 Firefox 不会给我任何错误。

<input
    type="text"
    name="title"
    defaultValue={post.title}
    onChange={(e) => 
    setTitle(e.target.value)}
    placeholder="title"
/>
Run Code Online (Sandbox Code Playgroud)

另外,在我在 Vercel 上的部署中,输入字段在 Chrome 中完美运行。所以它似乎仅限于 localhost/Chrome。

希望有人比我更了解这里发生的事情。

小智 8

从 chrome 扩展中删除 blackbox 扩展可能会