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.

Graph breaks after aot build

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

just start app in dev mode everything is ok

but after aot build, the graph seems can not build links between nodes

core.js:1427 ERROR TypeError: Cannot read property '_in' of undefined
    at graph.js:117
    at en (lodash.js:603)
    at Function.ai.filter (lodash.js:9189)
    at a.sources (graph.js:116)
    at longestPath (util.js:52)
    at p (network-simplex.js:56)
    at a (index.js:47)
    at OTPI.t.exports (index.js:34)
    at layout.js:35
    at notime (util.js:235)
    at layout.js:35
    at notime (util.js:235)
    at layout.js:25
    at notime (util.js:235)
    at Object.C2uY.t.exports [as layout] (layout.js:22)
    at e.draw (graph.component.js:179)

All nodes are huddled together.

Expected behavior

Reproduction of the problem

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

window10 and ubuntu14.04 webpack dev server and nginx

  • ngx-graph version: 4.0.2
  • Angular version: 5.1.0
  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
  • Language: [all | TypeScript 2.6.2/2.6.1/2.5.x | ES6/7 | ES5]

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
changevcommented, Feb 26, 2018

@isaacplmann thans very much! Seems that fixing this issue in ngx-graph is a little hard. So can I do something to change my aot build steps to support ngx-graph?

1reaction
changevcommented, Feb 6, 2018

@isaacplmann Please review this issue, thanks very much!

Read more comments on GitHub >

github_iconTop Results From Across the Web

After building app with ngx-graph for Prod environment tooltip ...
Ngx-graph broke after updating Angular from 5 to 6. ... This issue is resolved for me when removing aot from build.
Read more >
Ahead-of-time (AOT) compilation - Angular
The AOT compiler detects and reports template binding errors during the build step before users can see them. Better security, AOT compiles HTML...
Read more >
How the Fictional World of Attack on Titan Builds Itself
Using the anime Attack on Titan, you'll learn how iterative ... The graphic novel was originally created as a “one-shot,” meaning it was...
Read more >
.NET Runtime Identifier (RID) catalog | Microsoft Learn
The following example shows a slightly bigger RID graph also defined in ... Don't build RIDs programmatically unless absolutely necessary.
Read more >
What are the biggest plot holes in Attack on Titan? - Quora
It is the explosion of the built up tension that has existed ever since the final arc started. The seeds were there from...
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