Closed iampratapak closed 6 years ago
This is the sample code with angular 6 and ngx-monaco-editor 6.0.0. Please try if it works download
@atul-wizni thanks for the quick reply. It was my mistake with base href configuration to app. It's working after upgrading to monaco 6.
for those of who have some trouble because of it, try this down below.
{ "glob": "*/", "input": "../node_modules/ngx-monaco-editor/assets/monaco", "output": "./assets/monaco/" } -> { "glob": "*/", "input": "./node_modules/ngx-monaco-editor/assets/monaco", "output": "./assets/monaco/" }
i don't know why but it works for me.
How can this be so convoluted? nothing of this works for me in angular 12 anymore.
ngx-monaco-editor not working with angular 6 and angular cli-6 getting below error
Refused to execute script from 'http://localhost:8425/dashboard/assets/monaco/vs/loader.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
I am using "ngx-monaco-editor": "^6.0.0". With angular 5 and mgx-monaco-editor 4 I am not facing any issues.