Open felix-adhinata opened 5 months ago
I am having the same issue
Also run into this issue on an Angular 17 application. Dropping to v7.1.0 fixed this issue.
I'm not installed monaco, i run according the first part of documentation : only "npm i @ngstack/code-editor@4.0.0"
Same issue with:
"@angular/compiler": "^14.2.12",
"@ngstack/code-editor": "^4.0.0"
Runtime log show:
Error: Uncaught (in promise): ReferenceError: monaco is not defined
ReferenceError: monaco is not defined
at CodeEditorComponent.setupEditor (ngstack-code-editor.mjs:433:23)
at ngstack-code-editor.mjs:422:14
at Generator.next (
And the content of editor is an empty div.....
The repository comes with example applications. Please check if it's running for you and application configuration, if you have issues.
I am upgrading this in my project from v5.1.0 (ng16) to v7.2.0 (ng17) and then I got this error when running my test.
I am not installing
monaco-editor
on my package.json since I don't need offline mode in my project.Will install v7.1.0 for now since it seems the imports are added on v7.2.0, but I hope this can be resolved in a future version.