Title: ERROR in Maximum call stack size exceeded : Feature module circular dependency · Issue #6309 · angular/angular-cli · GitHub
Open Graph Title: ERROR in Maximum call stack size exceeded : Feature module circular dependency · Issue #6309 · angular/angular-cli
X Title: ERROR in Maximum call stack size exceeded : Feature module circular dependency · Issue #6309 · angular/angular-cli
Description: Bug Report or Feature Request (mark with an x) - [X] bug report -> please search issues before submitting - [ ] feature request Versions. @angular/cli: 1.0.0-rc.2 node: 6.10.0 os: linux x64 @angular/common: 2.4.10 @angular/compiler: 2.4....
Open Graph Description: Bug Report or Feature Request (mark with an x) - [X] bug report -> please search issues before submitting - [ ] feature request Versions. @angular/cli: 1.0.0-rc.2 node: 6.10.0 os: linux x64 @angula...
X Description: Bug Report or Feature Request (mark with an x) - [X] bug report -> please search issues before submitting - [ ] feature request Versions. @angular/cli: 1.0.0-rc.2 node: 6.10.0 os: linux x64 @ang...
Opengraph URL: https://github.com/angular/angular-cli/issues/6309
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ERROR in Maximum call stack size exceeded : Feature module circular dependency ","articleBody":"\u003c!--\r\nIF YOU DON'T FILL OUT THE FOLLOWING INFORMATION YOUR ISSUE MIGHT BE CLOSED WITHOUT INVESTIGATING\r\n-->\r\n### Bug Report or Feature Request (mark with an `x`)\r\n```\r\n- [X] bug report -> please search issues before submitting\r\n- [ ] feature request\r\n```\r\n\r\n### Versions.\r\n\u003c!--\r\nOutput from: `ng --version`.\r\nIf nothing, output from: `node --version` and `npm --version`.\r\n Windows (7/8/10). Linux (incl. distribution). macOS (El Capitan? Sierra?)\r\n-->\r\n> @angular/cli: 1.0.0-rc.2\r\nnode: 6.10.0\r\nos: linux x64\r\n@angular/common: 2.4.10\r\n@angular/compiler: 2.4.10\r\n@angular/core: 2.4.10\r\n@angular/forms: 2.4.10\r\n@angular/http: 2.4.10\r\n@angular/platform-browser: 2.4.10\r\n@angular/platform-browser-dynamic: 2.4.10\r\n@angular/router: 3.4.10\r\n@angular/cli: 1.0.0-rc.2\r\n@angular/compiler-cli: 2.4.10\r\n\r\n\r\n### Repro steps.\r\n\u003c!--\r\nSimple steps to reproduce this bug.\r\nPlease include: commands run, packages added, related code changes.\r\nA link to a sample repo would help too.\r\n-->\r\n**STEPS TO REPRODUCE**\r\nSee git repo\r\nhttps://github.com/vaibhavbparikh/circular-routes\r\n\r\n\r\n### The log given by the failure.\r\n\u003c!-- Normally this include a stack trace and some more information. -->\r\n> ** NG Live Development Server is running on http://localhost:4200 **\r\nHash: f669143e24ec08ff9586\r\nTime: 23223ms\r\nchunk {0} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 232 kB {4} [initial] [rendered]\r\nchunk {1} main.bundle.js, main.bundle.js.map (main) 332 kB {3} [initial] [rendered]\r\nchunk {2} styles.bundle.js, styles.bundle.js.map (styles) 304 kB {4} [initial] [rendered]\r\nchunk {3} vendor.bundle.js, vendor.bundle.js.map (vendor) 5.64 MB [initial] [rendered]\r\nchunk {4} inline.bundle.js, inline.bundle.js.map (inline) 0 bytes [entry] [rendered]\r\nERROR in Maximum call stack size exceeded\r\nwebpack: Failed to compile.\r\n\r\nHowever when I do any changes in file and save it again, angular-cli compiles it again and it runs fine then. \r\n\r\n\r\n### Desired functionality.\r\n\u003c!--\r\nWhat would like to see implemented?\r\nWhat is the usecase?\r\n-->\r\nThis behaviour shall not create cyclic dependency, there should be mechanism to detect this and break.\r\nEither it shall not compile at all or it shall not throw error at first compile.\r\n\r\n** USE CASE **\r\n> I have 3 Feature modules in the application. Each Feature modules contains 3 or more sub feature modules with their own components and specially **routes** with router module.\r\n> Now consider below scenario.\r\n> I have modules as below.\r\n> \r\n> - Feature 1\r\n> - Feature1Sub Feature 1\r\n> - Feature1Sub Feature 2\r\n> - Feature 2\r\n> - Feature2Sub Feature 1\r\n> - Feature2Sub Feature 2\r\n> - Feature 3\r\n> - Feature3Sub Feature 1\r\n> - Feature3Sub Feature 2\r\n> \r\n> Now Consider below flow.\r\n> I am loading Feature 1 -> Feature1Sub Feature 1. I want to load Feature2Sub Feature 1 directly from Feature1Sub Feature 1. Without loading whole Feature 2 module. Also, I need to maintain navigation flow with back button.\r\n> So I will need to write routes and load that module with loadchildren feature in module of Feature1Sub Feature 1.\r\n> Same way I want to load Feature1Sub Feature 1 directly from Feature2SubFeature 1 without loading whole Feature 2 module. So again I will need to write routes in Feature1Sub Feature 1 module.\r\n> \r\n\r\nAs a complex and large application, there might be need to create flow where two or more modules needs each other with routing.\r\n\r\n\r\n### Mention any other details that might be useful.\r\n\u003c!-- Please include a link to the repo if this is related to an OSS project. -->\r\n\r\n","author":{"url":"https://github.com/vaibhavbparikh","@type":"Person","name":"vaibhavbparikh"},"datePublished":"2017-05-14T12:43:02Z","url":"https://github.com/angular/angular-cli/issues/6309"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:14950efc-b8f9-6704-b9a5-dc7e16f7bc1b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B88C:A71F9:B53BC7:E3C82D:6B013046 |
| html-safe-nonce | b04fb4be5618b673a283a0a4de77be967c816420d986d68cfe77e4c10db8d570 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODhDOkE3MUY5OkI1M0JDNzpFM0M4MkQ6NkIwMTMwNDYiLCJ2aXNpdG9yX2lkIjoiOTEyODMyMDM3OTQxNTI0NDg3MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e8ea3998afd7b5619ed1f9b87c52466b01f1662d3c2c11b39be45de5f1bc54cb |
| hovercard-subject-tag | issue:228539267 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/6309/issue_layout |
| twitter:image | https://opengraph.githubassets.com/37f3432a7ede7a224a13bcfb585c98de8bba9c86ebcbbcbc2b962c34982e4649/angular/angular-cli/issues/6309 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/37f3432a7ede7a224a13bcfb585c98de8bba9c86ebcbbcbc2b962c34982e4649/angular/angular-cli/issues/6309 |
| og:image:alt | Bug Report or Feature Request (mark with an x) - [X] bug report -> please search issues before submitting - [ ] feature request Versions. @angular/cli: 1.0.0-rc.2 node: 6.10.0 os: linux x64 @angula... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vaibhavbparikh |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width