After building app with ngx-graph for Prod environment tooltip breaks the app.
See original GitHub issueOd Dev environtmnt everything works fine. But when i build the app with:
ng build --prod
my console is filled with errors and page frezzes.
I tried to remove tooltips from my html graph template but this doesn’t help. Updated my ngx-graph and ngx-charts to the latest version and the error still occurs.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:16 (2 by maintainers)
Top Results From Across the Web
NGX-Graph Nodes turns black when using third property
I'm trying to make a crone tree using ngx-graph, and link each node to a pop- ...
Read more >Changelog - ngx-charts - GitBook
Breaking : Update to angular 11 · Bug: Improve SSR capabilities by approximating axis dimensions (#1567) · Bug: Chart Tooltip does not work...
Read more >What's new - Radzen
(Angular) Exception is thrown after using the Query Builder in a Tree event ... (Blazor) Fixed Chart tooltip is not displayed for area...
Read more >swimlane/ngx-charts - Gitter
I subscribe to this observable within the constructor of my ngx-charts ... with ngx-graph in prod on angular 6.1 because of the tooltip...
Read more >ngx-intl-tel-input node module changing the styles-angular.js
Why i still getting an undefined return here? Ionic 3 - App shows blank screen after build with --prod · WCF Rest Api...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Since the TooltipService and InjectionService are from the dependency ngx-charts and not in ngx-graph itself, I looked over there to search for related issues. I found #975.
The only feasible solution proposed seemed to be here, which is just to revert to earlier versions of ngx-graph and ngx-charts. The versions suggested are:
However, in my case, this was throwing an error because the BaseChartComponent in this old version of ngx-charts was using
Observable.fromEvent
(I’m using Angular v7 and rxjs v6.3).I changed to ngx-graph v5.0.0 and ngx-charts v8.1.0 and it worked in production with AOT. So for those who cannot remove
aot
orbuild-optimizer
, this may be an option.I ran into this issue as well. This issue is resolved for me when removing
aot
from build. It is a better workaround than the hack suggested above, but not a desired one. I wander if the answer here can resolve this case as well.