monaco-editor 0.43 loaded in codesandbox when using monaco-react 1.6
StefanDBTLabs opened this issue · comments
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:
- Go to https://codesandbox.io/p/sandbox/onvalidate-forked-tsn7s2?file=%2Fpackage.json
- see
"@monaco-editor/react": "4.6.0"
in package.json - inspect network requests
- 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
Maybe it's conflicting with the monaco editor of codesandbox? Could you please try it in stackblitz?
thanks for the idea to try. I still see 0.43 loaded there: https://stackblitz.com/edit/vitejs-vite-jntzwg?file=src%2FApp.tsx