question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

After building app with ngx-graph for Prod environment tooltip breaks the app.

See original GitHub issue

Od Dev environtmnt everything works fine. But when i build the app with:

ng build --prod my console is filled with errors and page frezzes.

image

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:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:16 (2 by maintainers)

github_iconTop GitHub Comments

9reactions
rfergcommented, Dec 12, 2018

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:

@swimlane/ngx-graph”: “4.1.1”, “@swimlane/ngx-charts”: “7.3.0”

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 or build-optimizer, this may be an option.

2reactions
rmiller-sgntrcommented, Oct 16, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found