Title: LoadChildren - lazy loaded routes and relative path problems · Issue #12236 · angular/angular-cli · GitHub
Open Graph Title: LoadChildren - lazy loaded routes and relative path problems · Issue #12236 · angular/angular-cli
X Title: LoadChildren - lazy loaded routes and relative path problems · Issue #12236 · angular/angular-cli
Description: Bug Report or Feature Request (mark with an x) bug report Command (mark with an x) build [x ] serve Versions NPM 6.2.0 Node v10.9.0 Angular CLI: 6.0.8 Node: 10.9.0 OS: win32 x64 Angular: 6.1.4 Package Version @angular-devkit/architect 0....
Open Graph Description: Bug Report or Feature Request (mark with an x) bug report Command (mark with an x) build [x ] serve Versions NPM 6.2.0 Node v10.9.0 Angular CLI: 6.0.8 Node: 10.9.0 OS: win32 x64 Angular: 6.1.4 Pack...
X Description: Bug Report or Feature Request (mark with an x) bug report Command (mark with an x) build [x ] serve Versions NPM 6.2.0 Node v10.9.0 Angular CLI: 6.0.8 Node: 10.9.0 OS: win32 x64 Angular: 6.1.4 Pack...
Opengraph URL: https://github.com/angular/angular-cli/issues/12236
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"LoadChildren - lazy loaded routes and relative path problems ","articleBody":"### Bug Report or Feature Request (mark with an `x`)\r\n- [x] bug report\r\n\r\n### Command (mark with an `x`)\r\n- [x] build\r\n- [x ] serve\r\n\r\n### Versions\r\n\r\nNPM 6.2.0\r\nNode v10.9.0\r\nAngular CLI: 6.0.8\r\nNode: 10.9.0\r\nOS: win32 x64\r\nAngular: 6.1.4\r\nPackage Version\r\n-----------------------------------------------------------\r\n@angular-devkit/architect 0.6.8\r\n@angular-devkit/build-angular 0.6.8\r\n@angular-devkit/build-optimizer 0.6.8\r\n@angular-devkit/core 0.6.8\r\n@angular-devkit/schematics 0.6.8\r\n@angular/cli 6.0.8\r\n@ngtools/webpack 6.0.8\r\n@schematics/angular 0.6.8\r\n@schematics/update 0.6.8\r\nrxjs 6.2.2\r\ntypescript 2.7.2\r\nwebpack 4.8.3\r\n\r\n\r\n### Repro steps\r\n1) To simulate this you have to download source code here (because stackblitz cannot even generate working, ready to download solutions...):\r\n[load-children-issue.zip](https://github.com/angular/angular-cli/files/2370708/load-children-issue.zip)\r\n\r\n2) NG serve = error:\r\nERROR in Could not resolve module ../../room/room.module relative to /D/GIT/angular-empty/bara2/src/app/layout/layout.module.ts\r\n\r\nif you check layout.module.ts, routing is imported via index.ts files - importing layoutRouting (layout.routing.ts) \r\n\r\nBUt it works when you resave anything (when project is rebuilt on watch. )\r\n\r\nCheck this picture please:\r\n\r\n\r\n\r\n### Expected behavior \r\nThere should be no problem with index.ts files regarding the relative path in loadChildren.\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n### Desired functionality\r\nLoadChildren relative path shoudl work regardless the folder \"deepness\" \r\n\r\n### Mention any other details that might be useful\r\n","author":{"url":"https://github.com/montella1507","@type":"Person","name":"montella1507"},"datePublished":"2018-09-11T11:15:22Z","url":"https://github.com/angular/angular-cli/issues/12236"}
| 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:727f1154-cf36-edd8-9ecc-e56ae164fa8e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DF72:361639:10CF980:16711EA:6B0119D6 |
| html-safe-nonce | f425b8769808f947e4b5c630acebbc3e48eb3299bd99b2c6d77d5529004e62df |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjcyOjM2MTYzOToxMENGOTgwOjE2NzExRUE6NkIwMTE5RDYiLCJ2aXNpdG9yX2lkIjoiNDQxOTQ1OTY5OTQxODY2NzQ3OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d4e9b2f2fd4f7fc679d60ea0bee9cb0775ea98ea191121762075d9e7b7947b4a |
| hovercard-subject-tag | issue:358999941 |
| 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/12236/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2e276932872c1bc393c35db69351bf4cb9d7f0ebf6253fe0572c11b22abc28d2/angular/angular-cli/issues/12236 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2e276932872c1bc393c35db69351bf4cb9d7f0ebf6253fe0572c11b22abc28d2/angular/angular-cli/issues/12236 |
| og:image:alt | Bug Report or Feature Request (mark with an x) bug report Command (mark with an x) build [x ] serve Versions NPM 6.2.0 Node v10.9.0 Angular CLI: 6.0.8 Node: 10.9.0 OS: win32 x64 Angular: 6.1.4 Pack... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | montella1507 |
| 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