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.

ngx-graph fails in production

See original GitHub issue

I’m submitting a … (check one with “x”)

[x ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here

Current behavior ngx-graph fails in production. Getting a Static injector error (attached image of the error). It however works locally and works in production while using “ng build --prod --aot=false --build optimizer=false”. It mostly is the same issue mentioned in https://github.com/swimlane/ngx-graph/issues/105

Angular - 7.2 ngx-graph - 5.4 ngx-charts - 8.1

chrome_2019-01-16_11-05-40

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
assafsuncommented, Jan 16, 2019

Regrading the warnings version 6 will support Angular 7

0reactions
learnuser521commented, Jan 17, 2019

@zolee I looked into #145. It might be the same but I am not sure. However I tried ng serve --aot locally and it is working fine but it fails for me locally when I execute ng serve --prod or with a production build (ng build --prod). I am not using the tooltip in the graph.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Solved]-ngx-graph : Build fails-angular.js - appsloveworld
The error was caused because ngx-graph had dependency on ngx-charts in earlier versions. They fixed this in version 6.0.0+ and the dependency has...
Read more >
angular - ngx-graph : Build fails - Stack Overflow
It seems that previous versions of ngx-graph and ngx-charts are working correctly with AOT compilation. We have tried with "@swimlane/ngx-graph" ...
Read more >
swimlane/ngx-graph - Gitter
just started with ngxgraph integration in angular 5. i am getting some error like Can't bind to 'tooltipPlacement' since it isn't a known...
Read more >
@swimlane/ngx-charts - npm Package Health Analysis | Snyk
Learn more about @swimlane/ngx-charts: package health score, popularity, ... All security vulnerabilities belong to production dependencies of direct and ...
Read more >
swimlane/ngx-charts/package.json - UNPKG
The CDN for @swimlane/ngx-charts. ... --display-error-details && npm run build:esm",. 22, "build:release": "cross-env NODE_ENV=production npm run build",.
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