diff --git a/angular.json b/angular.json index 15d0c78c27..3a0f2c17bc 100644 --- a/angular.json +++ b/angular.json @@ -19,12 +19,7 @@ "assets": [ "src/assets", "src/favicon.ico", - "src/manifest.json", - { - "glob": "worker-json.js", - "input": "./node_modules/ace-builds/src-min-noconflict", - "output": "/" - } + "src/manifest.json" ], "styles": [ "node_modules/bootstrap/dist/css/bootstrap.css", diff --git a/src/app/shared/code-editor/code-editor.component.ts b/src/app/shared/code-editor/code-editor.component.ts index b8dd2b1d98..abdc67a240 100644 --- a/src/app/shared/code-editor/code-editor.component.ts +++ b/src/app/shared/code-editor/code-editor.component.ts @@ -47,6 +47,7 @@ export class CodeEditorComponent implements AfterViewInit { ngAfterViewInit() { const aceMode = 'ace/mode/' + this.mode; + ace.config.set('workerPath', 'https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.4/'); this.editor = ace.edit(this.aceId, { mode: aceMode, readOnly: this.readOnly,