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

monaco-editor 0.43 loaded in codesandbox when using monaco-react 1.6 #613

Open
StefanDBTLabs opened this issue Apr 23, 2024 · 2 comments
Open

Comments

@StefanDBTLabs
Copy link
Contributor

Describe the bug
Unclear if I am doing something wrong but when setting up this codesandbox to use "@monaco-editor/react": "4.6.0" I was confused when I saw the network request for https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs/editor/editor.main.js when clearly monaco-loader says it should be loading 0.46.

To Reproduce

Steps to reproduce the behavior:

  1. Go to https://codesandbox.io/p/sandbox/onvalidate-forked-tsn7s2?file=%2Fpackage.json
  2. see "@monaco-editor/react": "4.6.0" in package.json
  3. inspect network requests
  4. See error editor.main.js 0.43 loaded instead of 0.46

Expected behavior
0.46 should load since that is what is listed in monaco-loader

@suren-atoyan
Copy link
Owner

Maybe it's conflicting with the monaco editor of codesandbox? Could you please try it in stackblitz?

@StefanDBTLabs
Copy link
Contributor Author

thanks for the idea to try. I still see 0.43 loaded there: https://stackblitz.com/edit/vitejs-vite-jntzwg?file=src%2FApp.tsx

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