atularen / ngx-monaco-editor

Monaco Editor component for Angular 2 and Above
https://www.npmjs.com/package/ngx-monaco-editor
MIT License
428 stars 155 forks source link

ng serve reload loop #257

Open obiwan007 opened 2 years ago

obiwan007 commented 2 years ago

If I change some file, the ng serve is trying to reload/recompile in an endless loop if using the glob asset extension in angular.json: "assets": [ { "glob": "*/", "input": "node_modules/monaco-editor", "output": "assets/monaco-editor" }, ],

If I remove this then of cause the editor is not found but no issue at all with updating the files.

Using "@angular/cli": "12.2", "ngx-monaco-editor": "^12.0.0",

Any ideas? Is it possible to bundle also without the assets glob pattern?

sbryfcz commented 1 year ago

Ever find a solution to this? I'm seeing the same issue

nhack commented 1 year ago

I had the same issue, and I have realized that by putting only the required assets fixed the issue: { "glob": "**/*", "input": "node_modules/monaco-editor/min/vs", "output": "/assets/monaco/min/vs/" }