materiahq / ngx-monaco-editor

Monaco Editor Library for Angular v6 and above
MIT License
159 stars 35 forks source link

'can only have one anonymous define call per script file' in console #11

Closed amily666 closed 4 years ago

amily666 commented 5 years ago

i'm use ngx-monaca-deditor in angular7, and get the error 'can only have one anonymous define call per script file' in console, what can i do ?

jmarc-roy commented 5 years ago

Hi @amily666,

Do you have more informations to share ? Are you using our library in electron or in the browser ?

I found issues with the same error message on the monaco-editor github repo: #1249 and #19. Maybe you have the same issue, do you use jquery in your angular app ?

stagefright5 commented 3 years ago

@GeoAstronaute I am able to reproduce this in combination with a dynamic require of another module (strong-soap). My env is Electron v9. Here is the repo for reproducing: repo The steps to reproduce is the the root README.md

I have raised the issue in both monaco-editor and strong-soap repos: