You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
main code:
import loader from '@monaco-editor/loader';
console.log(loader) // ok
console.log(loader.init) // ok
loader.init().then((monaco: any) => { // it does not run from here in PRODUCTION ENV // and there was no any error happened in console
console.log('loader.init.then...');
console.log(monaco);
this.monacomain = monaco
console.log(this.monacomain,'--this.monacomain');
// ...
})
The text was updated successfully, but these errors were encountered:
It may be a CDN issue or CSP issue - please check these. If fix CDN issue try to load it from a different source (please check this) or use it as an npm package
it works OK in dev env but failed in production env.
env:
angular 14
@monaco-editor/loader ^1.4.0
monaco-editor ^0.50.0
main code:
import loader from '@monaco-editor/loader';
console.log(loader) // ok
console.log(loader.init) // ok
loader.init().then((monaco: any) => {
// it does not run from here in PRODUCTION ENV
// and there was no any error happened in console
console.log('loader.init.then...');
console.log(monaco);
this.monacomain = monaco
console.log(this.monacomain,'--this.monacomain');
// ...
})
The text was updated successfully, but these errors were encountered: