Skip to content
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

model.canUndo is not a function #2

Open
sabolch opened this issue Aug 16, 2019 · 4 comments
Open

model.canUndo is not a function #2

sabolch opened this issue Aug 16, 2019 · 4 comments

Comments

@sabolch
Copy link

sabolch commented Aug 16, 2019

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

@jaywcjlove
Copy link
Member

@varghasabee Can you give me example debugging?

@sabolch
Copy link
Author

sabolch commented Aug 16, 2019

@jaywcjlove
Copy link
Member

@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

@sabolch
Copy link
Author

sabolch commented Aug 16, 2019

I'll try it out. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants