monaco-react
monaco-react copied to clipboard
TypeError: monacoRef.current.editor.onDidChangeMarkers is not a function
Describe the bug
TypeError: monacoRef.current.editor.onDidChangeMarkers is not a function
To Reproduce
The problem has occurred sporadically, and the cause has not been determined yet.
In the future, I will try to reproduce and supplement the reproduction process
I don't know if it's a timing issue?
https://github.com/suren-atoyan/monaco-react/blob/master/src/Editor/Editor.tsx#L216
Expected behavior I hope this issue does not occur and can run normally
Desktop (please complete the following information):
- OS: ProductName: macOS ProductVersion: 12.1 BuildVersion: 21C52
- Browser [[email protected](正式版本) (arm64)]
- Version [4.4.6]