New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Cannot read properties of null (reading 'set') #568
Comments
@zjy365 Can you provide me with a reproducible example using https://codesandbox.io? I can help you troubleshoot the issue. |
@jaywcjlove I created a new next project and tried it. You can take a look. |
There are no errors when downloading the project locally. @zjy365 So, I cannot reproduce your error. |
i also have the same issue |
i have the same issuse |
iShot_2023-09-20_10.32.46.mp4https://github.com/uiwjs/react-codemirror/tree/master/example/nextjs I recreated the nextjs project and the error disappeared. |
i have the same issuse too, only set the onChange props will show |
|
I am having this same issue too. It seemed to start happening recently (I think) but downgrading the version number does not seem to have fixed the problem. These errors come up when moving the mouse over the code mirror input and when pressing keys inside of it. I've tried to see if I can make the error go away by simplifying my use of the component, but even after stripping it down to the bare minimum props (shown below) I still see these console errors. My usage of the component (note that I've commented most props out - errors still occur) <CodeMirror
ref={rootRef}
// indentWithTab={false}
// readOnly={usedReadOnly}
className="code-input__input"
// theme={theme}
value={value}
height="100%"
// extensions={extensions}
onChange={handleChange}
// basicSetup={basicSetup}
/> Error is the same as the others have reported: |
@zjy365 @kohloth @liaoyingtao This is caused by the integrated Upgrading to <CodeMirror
basicSetup={{
+ crosshairCursor: false
}}
/> |
Had same issue, for now setting the |
Thank you. Successfully resolved |
Here's how I use it
my version
When I mouseover this editor section, the console output is consistent. this error
The text was updated successfully, but these errors were encountered: