-
Notifications
You must be signed in to change notification settings - Fork 92
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
Conflict with BlazorMonaco #355
Comments
I am encountering the same issue any help with this would be appreciated. 👍🏼 |
Came across this issue on the BlazorMonaco serdarciplak/BlazorMonaco#59 The prebuilt version only comes with json/yaml support but you can rebuild it with the languages you want. |
@Alexr03, thanks for that. That does appear to work, but unfortunately (AFAIK) Microsoft does not support loading Monaco in this manner, so it's more of a workaround rather than a viable solution (at least for us). We will probably just stay on 1.3.0 until this is resolved in BlazorMonaco (hoping). We may need to start looking into other charting solutions, although I do really like ApexCharts. |
Are you sure they don't support it? They do provide documentation on it. https://github.com/microsoft/monaco-editor/blob/main/docs/integrate-esm.md For us at least, we have forked the repo, modified the webpack config to add the languages we need and serving the built files in our blazor app. Its fixed the issues we were having when using ApexCharts, Monaco & XTerm |
I see what you're saying. Yes, it looks like they support using webpack which bypasses the loader method responsible for this conflict. I'll investigate this as an alternative. Honestly, this still doesn't look "clean" since BlazorMonaco is not intended to be used this way, and it introduces additional complexity to our builds (by having to use webpack). |
Hello, I bit late to the party here but is there anything we can do on the Blazor-Apexcharts side to help with this issue? |
@joadan, thanks for your reply. I have not troubleshot this (we are so busy), but it appears that Blazor-ApexCharts 2.0 introduced something new that conflicts with BlazorMonaco's loader.js (written by Microsoft). I am hoping that whatever is causing this conflict could be "fixed" (I realize this is not a bug, per se). I described how to reproduce in the OP. |
I believe its related to this issue. serdarciplak/BlazorMonaco#20 |
@Alexr03, thank you. @Crazy1van, in 2.0 Blazor-Apexcharts started using ECMAScript Modules (ESM) to lazy load the javascript file. I believe this issue is on the BlazorMonaco side, a workaround is proposed by @Alexr03 #355 (comment) Not sure if there is anything more we can do here, or? |
I was able to work around by using this fix, serdarciplak/BlazorMonaco#81 (comment) |
@joadan are you using the latest versions of each library? |
@StephenOTT, sorry I was to fast.. I had to make a custom build in order to make it work. |
@joadan
|
When using Apexcharts 2.0 or higher and using BlazorMonaco at the same time, I encounter an error: "SVG is not defined".
I suspect that there is some sort of javascript conflict between these two nuget packages. I know this is very specific, but BlazorMonaco is a fairly popular component.
Steps to reproduce:
It worked fine on version 1.3.0 and below.
The text was updated successfully, but these errors were encountered: