uiwjs / react-monacoeditor

Monaco Editor component for React.

Home Page:https://uiwjs.github.io/react-monacoeditor/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

model.canUndo is not a function

sabolch opened this issue · comments

Hello. When I usereact-router-dom with react-monacoeditor I get this error.
The error will appear when I refresh (F5) the page which contains the editor and navigate to another route (/about) and back to editor page, the editor stops working and I get this error.

ok

@varghasabee Can you give me example debugging?

@varghasabee I found that the dependency package may be too old and cause an error.

The following example can be run:
https://github.com/demo-js/react-monacoeditor-example

I'll try it out. Thank you!