Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ngx-monaco-editor not working with angular 12 #242

Open
tusharpanumatcha opened this issue Dec 16, 2021 · 6 comments
Open

ngx-monaco-editor not working with angular 12 #242

tusharpanumatcha opened this issue Dec 16, 2021 · 6 comments

Comments

@tusharpanumatcha
Copy link

I have been trying to implement ngx-monaco-editor in my angular 12 projects but the component is not rendering i have implemented by following the https://www.npmjs.com/package/ngx-monaco-editor

@stephengeorge568
Copy link

Have you resolved this? I have same issue. No errors, but nothing renders.

@stephengeorge568
Copy link

image
image

Its not linking up the editor node module with the assets directory. If I was more aware of Angular I'm sure this would be an easy fix. Look at your dev tools console. Might be the same issue.

@coloz
Copy link

coloz commented Jan 15, 2022

change the config to:

{
  "glob": "**/*",
  "input": "node_modules/monaco-editor/dev",
  "output": "assets/monaco"
}

@tusharpanumatcha
Copy link
Author

tusharpanumatcha commented Jan 15, 2022 via email

@doubler84
Copy link

{
"glob": "**/*",
"input": "./node_modules/monaco-editor/",
"output": "/assets/monaco-editor/"
}

This works.

@miki995
Copy link

miki995 commented Aug 3, 2022

You have to install monaco-editor as from v10 ngx-monaco-editor requires it to be installed in your repo.

BTW:

@here I've a new fork with latest angular 14, ngZone upgrade and fixed production missing assets, have a look, works for my company now:

https://www.npmjs.com/package/ngx-monaco-editor-v2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants