Graph breaks after aot build
See original GitHub issueI’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:
- Created 6 years ago
- Comments:10 (4 by maintainers)
Top 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 >
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

@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?
@isaacplmann Please review this issue, thanks very much!