Uncaught TypeError: Cannot read properties of null (reading 'CodeMirror') at <anonymous>:7:17

This issue has been created since 2022-11-18.

I am getting this unexpected error every time I am writing something in the input field in react and the error goes as follows

Screenshot (184)

and this is the code

import { useState } from "react";

const App = () => {

  const [ firstName, setFirstName ] = useState('');

  const onSubmitForm = (e) => {

    e.preventDefault();

    console.log(firstName);
    
  }

  return (
    <div>
      <form onSubmit={onSubmitForm}>
        <label>First Name</label>
        <input type="text" name="firstname" id="firstname" onChange={(e) => setFirstName(e.target.value)} />
      </form>
    </div>
  )
}
export default App;

This is happening to me since today only.

It would be great if anyone address this issue and please explain how to fix it.

Thanks.

computnik wrote this answer on 2022-11-20

Do u have BlackBox chrome extension installed? Seems like a problem with the extension.

eps1lon wrote this answer on 2022-11-20

Support requests filed as GitHub issues often go unanswered. We want you to find the answer you're looking for, so we suggest the following alternatives:

Coding Questions
If you have a coding question related to React and React DOM, it might be better suited for Stack Overflow. It's a great place to browse through frequent questions about using React, as well as ask for help with specific questions.

https://stackoverflow.com/questions/tagged/react

Talk to other React developers
There are many online forums which are a great place for discussion about best practices and application architecture as well as the future of React.

https://reactjs.org/community/support.html

somenath203 wrote this answer on 2022-11-21

Do u have BlackBox chrome extension installed? Seems like a problem with the extension.

Thanks for the reply. I removed the BlackBox extension and now I am getting no error.

More Details About Repo
Owner Name facebook
Repo Name react
Full Name facebook/react
Language JavaScript
Created Date 2013-05-24
Updated Date 2022-12-10
Star Count 198882
Watcher Count 6638
Fork Count 41302
Issue Count 1120

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Wrong Publish Date CVE-2022-2347 2 2022-07-14 2022-07-30
SwAV example not working 2 2022-03-29 2022-11-24
Can't identify modifiers without memorizing icons 1 2021-01-02 2022-11-05
Use @ConfigurationProperties instead of @Value for auto-completion 2 2021-04-20 2022-10-24
Daes it make sense to improve validators process? 2 2021-04-08 2022-10-10
Proton Crash in both experimental, 7.0-4 and other versions 4 2022-08-29 2022-09-23
BA.5.2 + Orf1B:T1050N sublineage with S:R346T and S:K444R (9 sequences, Denmark, Pakistan) 13 2022-09-04 2022-09-23
Documentation issue in `exclusions` 2 2022-06-18 2022-12-09
Generalise or generalised fromList 2 2018-07-06 2022-11-21
Hide Selenium Extension: error - Has anyone fixed this problem? 15 2022-03-17 2022-11-28
Pressing "Start Listening" doesn't work 0 2022-01-05 2022-11-05
Handbook: Hide "on this page" functionality (only when viewing intro page) 0 2021-12-09 2022-10-13
how to uninstall WSA and reinstall 0 2021-12-09 2022-07-30
Enhanced privacy 1 2021-04-24 2022-01-21
add to releases Concourse worker for darwin arm64 architecture (Apple M1) 2 2022-05-09 2022-10-24
Remove premium stickers on stickers menu 1 2022-08-19 2022-11-18
Strict mode UntaggedSocketViolation 0 2021-11-16 2022-12-08
translate plan 1 2021-07-22 2022-01-03
[Auto Generated]Plugin error occurred: find: An invalid record was encountered. (-67701) 1 2022-10-15 2022-10-15
[Auto Generated]Plugin error occurred: find: An invalid record was encountered. (-67701) 1 2022-10-15 2022-11-13
[Auto Generated]Plugin error occurred: find: An invalid record was encountered. (-67701) 1 2022-10-15 2022-10-15
[Auto Generated]Plugin error occurred: find: An invalid record was encountered. (-67701) 1 2022-10-15 2022-10-15
[Auto Generated]Plugin error occurred: Translation parsing failed[ai.youdao]: org/tritonus/share/ArraySet 0 2022-10-16 2022-10-15
[Auto Generated]Plugin error occurred: find: An invalid record was encountered. (-67701) 1 2022-10-15 2022-10-15
[Auto Generated]Plugin error occurred: find: An invalid record was encountered. (-67701) 1 2022-10-15 2022-11-12
[Auto Generated]Plugin error occurred: [SQLITE_IOERR_DELETE] I/O error within xDelete (disk I/O error) Query: CREATE TABLE IF NOT EXISTS wo... 0 2022-10-16 2022-11-13
[Feature Request] Day temperature variation 4 2021-10-20 2022-10-22
Adding AWS Region Jakarta (ap-southeast-3) to list of S3 Bucket Region (Redshift & S3 Connector) 0 2022-03-10 2022-11-13
Mixpanel Export.process_response() Fails in case of JSON text properties cointaining underlying line breaks 5 2022-03-10 2022-10-21
Stop changing directory 12 2021-01-15 2022-11-14
diagnostic indices are not reported by the describe_posterior function 3 2022-06-24 2022-12-02
Add Gradio UI to expose best.py model 0 2021-08-25 2022-10-01
Saving the progress of the work for tomorrow's continuation 1 2021-03-16 2022-11-13
Fixed putting multiple locks on one packet 0 2021-11-04 2022-09-11
Setting property default value to enum points to invalid namespace 12 2022-03-21 2022-11-27
Psalm integration 0 2020-10-04 2022-01-23
UniqueID extension adds extra empty paragraphs when used with HocusPocus 9 2022-01-18 2022-10-16
[user mistake] Failed to detect the writable program/script in task scheduler jobs 1 2020-11-26 2022-11-30
Support Content-Type in image service 1 2021-08-04 2022-10-19
Remove `aks-engine` tests and template from PR and nightly runs 3 2022-01-14 2022-11-30
Could not establish connection to Remote Host with SSH. 0 2022-10-13 2022-10-25
add db reference quickpick doesn't check for dacpac being on the same drive 0 2022-04-13 2022-09-26
计算机网络概述 | Hongwei Blog 0 2021-06-02 2022-11-17
Paste Hangs Terminal (Right Mouse Click) 12 2021-05-23 2022-10-01
Empty columns in terminal UI (fonts) 1 2021-09-02 2022-12-10
Quick fixes 0 2020-02-21 2022-01-16
chore(deps): update dependency lint-staged to v12.1.2 0 2021-11-22 2022-01-24
ESPv2 image vulnerabilities 7 2021-08-13 2022-11-30
`module_test_ios` fails on Xcode 14 1 2022-08-30 2022-11-17
Friction adding swift plugin to objective-c project 67 2018-03-29 2022-10-09