我的 NextJS (13) 应用似乎遇到了问题。 Chrome 以某种方式给了我下一个错误:
TypeError:无法读取 null 的属性(读取“CodeMirror”)
我的应用程序中任何输入字段的每次输入/事件都会发生这种情况,直到昨天我都没有遇到任何问题。我没有对我的代码进行任何可能对这些输入字段产生影响的更改。 Safari 和 Firefox 没有给我任何错误。
<input
type="text"
name="title"
defaultValue={post.title}
onChange={(e) =>
setTitle(e.target.value)}
placeholder="title"
/>
同样在我在 Vercel 上的部署中,输入字段在 Chrome 中工作得很好。所以好像仅限于localhost/Chrome。
希望有人比我更了解这里发生的事情。
最佳答案
从 chrome 扩展中删除 blackbox 扩展可能
关于google-chrome - 类型错误 : Cannot read properties of null (reading 'CodeMirror' ),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/74495448/