I have been encountering an issue while attempting to utilize the editor within my Angular 8 application. Despite researching similar errors on Stack Overflow and GitHub discussions, I haven't found a solution yet. Here's how my angular.json assets section looks like:
"assets": [
{
"glob": "**/*",
"input": "node_modules/ngx-monaco-editor/assets/monaco",
"output": "./assets/monaco/"
},
"src/favicon.ico",
"src/assets"
]
In my app.module.ts file, I have included:
MonacoEditorModule.forRoot()
And in my component, the following code is present:
<ngx-monaco-editor [options]="editorOptions" [(ngModel)]="code"></ngx-monaco-editor>
However, upon trying to run the page, I encounter this error message: GET http://localhost:4200/assets/monaco/vs/loader.js net::ERR_ABORTED 404 (Not Found) ngx-monaco-editor.js:76