Replies: 4 comments 1 reply
-
I had a similar issue that was caused by not defining the location of my worker scripts. See https://github.com/microsoft/monaco-editor/blob/main/docs/integrate-esm.md for details on how to resolve. |
Beta Was this translation helpful? Give feedback.
-
I tried, but failed. |
Beta Was this translation helpful? Give feedback.
-
@darrenfei This looks like a problem with webpack. Could you please start with a sample like https://github.com/microsoft/monaco-editor-samples/tree/main/browser-esm-webpack-monaco-plugin and check if that works for you? Then you can try tweaking the webpack versions to be the same ones you have and check if things still work, then finally you can try to bring over the webpack config into your application's webpack config. |
Beta Was this translation helpful? Give feedback.
-
I created a new react app with create-react-app & react-app-rewired. It still not working. |
Beta Was this translation helpful? Give feedback.
-
monaco-editor version: 0.28.1
monaco-editor-webpack-plugin: 4.2.0
Browser: Microsoft Edge 93.0.961.52
OS: macOs Big Sur 11.3.1
Playground code that reproduces the issue:
webpack plugin:
code:
Error message below:
Beta Was this translation helpful? Give feedback.
All reactions