monaco-react
monaco-react copied to clipboard
Can only have one anonymous define call per script file
when i use the module, and use it in my project, i have met this error
Hello @leijunping
Could you please provide a reproducible code snippet, or please give more info about the usage of the library?

Each demo has a editor for the code. when I switch the demo, this issue will occur @suren-atoyan
@hustcc could you please try to use multi-model editor as you have more than one editor?
@hustcc could you please try to use multi-model editor as you have more than one editor?
Only one editor in the SPA page, but can be switch another case.
I will try multi editor.
In my case, every editor in a different react router. When I click the item and change the router, the error occurred.
https://user-images.githubusercontent.com/7856674/113955914-34c38800-984f-11eb-8c1c-1dc97f1820d3.mp4

@hustcc do you use path property on the Editor component?
@suren-atoyan same error with multiple umd libs
steps
open editor page navigate to page with another umd module same error in console
but if I go to umd first and then go to editor - its ok
@dmitryshelomanov I guess the different AMD implementations are conflicting. Which "another umd module" do you use?
I am closing this due to inactivity, feel free to re-open it