![](/img/trans.png)
[英]AngularJs application not working in chrome but working in other browsers
[英]code mirror html not working in chrome but working in other browsers
也許是因為您缺少<!DOCTYPE html>
聲明
我似乎在使用 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 中運行完美。 所以這是本地主機/Chrome 問題。
更新:
我的問題已通過從 Chrome 中刪除 Blackbox 擴展程序得到解決。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.