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

[Bug] Cannot read properties of undefined (reading 'toUrl') #652

Open
BlueBeret opened this issue Oct 31, 2024 · 3 comments
Open

[Bug] Cannot read properties of undefined (reading 'toUrl') #652

BlueBeret opened this issue Oct 31, 2024 · 3 comments

Comments

@BlueBeret
Copy link

Describe the bug
Loading monaco-editor from node modules is failing due to Cannot read properties of undefined (reading 'toUrl')

To Reproduce

Steps to reproduce the behavior:
minimalrepro

Expected behavior
no error

Screenshots
image

Desktop (please complete the following information):

  • OS: Linux
  • Browser Chrome
  • "monaco-editor": "^0.52.0",
  • "@monaco-editor/react": "^4.4.6",
@suren-atoyan
Copy link
Owner

probably you need to use monaco-editor-webpack-plugin as you use react-scripts

@BlueBeret
Copy link
Author

what if I use babel, is there anyway to resolve this without ejecting?

@dribble-njr
Copy link

dribble-njr commented Nov 15, 2024

I tried downgrading to [email protected] and it solved.

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

3 participants