materiahq / ngx-monaco-editor

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

MONACO_PATH is not set correctly #60

Closed ArkasDev closed 2 years ago

ArkasDev commented 3 years ago

I have problems loading the dependencies via CDN. I have tried to get the editor to run like in the example, but it looks like the MONACO_PATH is not set correctly:

providers: [{
  provide: MONACO_PATH,
  useValue: 'https://unpkg.com/monaco-editor@0.18.1/min/vs'
}],

materia-ui-ngx-monaco-editor.js:67 GET http://localhost:3000/assets/monaco-editor/min/vs/loader.js net::ERR_ABORTED 404 (Not Found)

jmarc-roy commented 3 years ago

Hello @ArkasDev ,

Can you try with latest version v5.1.0 ? Does this happen in electron or in the browser or both ?