google-chrome - 类型错误 : Cannot read properties of null (reading 'CodeMirror' )

标签 google-chrome next.js localhost codemirror

我的 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/

相关文章:

javascript - NextAuth 在 session 回调中抛出 CLIENT_FETCH_ERROR 错误

node.js - Next.JS:带有 Promise 的解析器在 SSR 上的 api-routes-server-and-client-test 中不起作用

next.js - 类型错误 : fetch failed when deploying to Vercel (Next. js)

php - 从 localhost wordpress 更改为 live site wordpress

ios - 为什么浏览器厂商无法在 iOS 上实现 WebPush?

javascript - chrome 54 中默认使用前置摄像头的 webrtc

linux 将 localhost 端口重定向到 url 端口

android - 来自本地服务器/主机的 Android 中的 SSL 证书无效

javascript - 如何使用 WebRTC 停止屏幕共享?

javascript - socket.emit 不适用于移动 chrome(但它适用于隐身模式)