Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TypeError: Cannot read properties of null (reading 'CodeMirror')

I seem to be facing an issue with my NextJS (13) app. Somehow Chrome gives me the next error:

TypeError: Cannot read properties of null (reading 'CodeMirror')

It happens with every entry/event to any input field in my app and until yesterday i didn't have any issues. I haven't made any changes to my code that could have had an effect on these input fields. Safari and Firefox don't give me any errors.

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

Also in my deployment on Vercel the input fields work perfect in Chrome. So it seems to be limited to localhost/Chrome.

Hopefully someone understands more about whats happening here than i do.

like image 432
Jeroen van Bart Avatar asked Nov 24 '25 17:11

Jeroen van Bart


2 Answers

remove the blackbox extension from chrome extension may

like image 139
VIKAS MOURYA Avatar answered Nov 26 '25 05:11

VIKAS MOURYA


Figured out what the problem was, had the blackbox extension installed in chrome. After removing this extension all my input fields worked fine again in localhost. Still is weird to me that it happened so sudden, especially since i got this extension for ages. But it fixed the issue.

like image 38
Jeroen van Bart Avatar answered Nov 26 '25 07:11

Jeroen van Bart



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!