René's URL Explorer Experiment


Title: ngtools with nested lazy modules routing · Issue #3593 · angular/angular-cli · GitHub

Open Graph Title: ngtools with nested lazy modules routing · Issue #3593 · angular/angular-cli

X Title: ngtools with nested lazy modules routing · Issue #3593 · angular/angular-cli

Description: Please provide us with the following information: OS? Windows 10 Versions. angular-cli: 1.0.0-beta.22-1 node: 6.7.0 os: win32 x64 Repro steps. Suppose there are two nested lazy modules routes like this: Module A: app-routing.module `expo...

Open Graph Description: Please provide us with the following information: OS? Windows 10 Versions. angular-cli: 1.0.0-beta.22-1 node: 6.7.0 os: win32 x64 Repro steps. Suppose there are two nested lazy modules routes like ...

X Description: Please provide us with the following information: OS? Windows 10 Versions. angular-cli: 1.0.0-beta.22-1 node: 6.7.0 os: win32 x64 Repro steps. Suppose there are two nested lazy modules routes like ...

Opengraph URL: https://github.com/angular/angular-cli/issues/3593

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ngtools with nested lazy modules routing","articleBody":"> Please provide us with the following information:\r\n> ---------------------------------------------------------------\r\n\r\n### OS?\r\n> Windows 10\r\n\r\n\r\n### Versions.\r\n> angular-cli: 1.0.0-beta.22-1\r\nnode: 6.7.0\r\nos: win32 x64\r\n\r\n\r\n### Repro steps.\r\nSuppose there are two nested lazy modules routes like this:\r\n\r\n**Module A: app-routing.module**\r\n\r\n`export const routes: Routes = [\r\n  { path: '', redirectTo: 'dashboard', pathMatch: 'full' },\r\n  { path: 'login', loadChildren: './login/login.module#LoginModule' },\r\n  { path: 'dashboard', loadChildren: './dashboard/dashboard.module#DashboardModule'}\r\n];\r\n\r\n@NgModule({\r\n  imports: [RouterModule.forRoot(routes)],\r\n  exports: [RouterModule]\r\n})\r\nexport class AppRoutingModule {}`\r\n\r\n\r\n**Module B (lazy module with another lazy module) dashboard-routing.module:**\r\n\r\n`const routes: Routes = [\r\n  { path: '', component: DashboardComponent, pathMatch: 'full' },\r\n  { path: 'explotaciones', component: DashboardComponent,\r\n    children: [\r\n        { path: '', loadChildren: './explotaciones/explotaciones.module#ExplotacionesModule'}\r\n      ]\r\n  }\r\n];\r\n\r\n@NgModule({\r\n  imports: [RouterModule.forChild(routes)],\r\n  exports: [RouterModule]\r\n})\r\nexport class DashboardRoutingModule {}`\r\n\r\n\r\n### The log given by the failure.\r\nError: Could not resolve route \"./explotaciones/explotaciones.module#ExplotacionesModule\" from file \"D:\\Code\\DL-GEST\\src\\client\\app\\dashboard\\dashboard.module\".\r\n    at D:\\Code\\DL-GEST\\node_modules\\@ngtools\\webpack\\src\\plugin.js:280:23\r\n    at Array.map (native)\r\n    at AotPlugin._processNgModule (D:\\Code\\DL-GEST\\node_modules\\@ngtools\\webpack\\src\\plugin.js:275:14)\r\n    at _loop_1 (D:\\Code\\DL-GEST\\node_modules\\@ngtools\\webpack\\src\\plugin.js:309:35)\r\n    at AotPlugin._processNgModule (D:\\Code\\DL-GEST\\node_modules\\@ngtools\\webpack\\src\\plugin.js:328:13)\r\n    at D:\\Code\\DL-GEST\\node_modules\\@ngtools\\webpack\\src\\plugin.js:242:39\r\n    at process._tickCallback (internal/process/next_tick.js:103:7)\r\n 70% building modules 716/716 modules 0 active\r\n\r\n\r\n### Mention any other details that might be useful.\r\nI have been looking for the error and I find a problem in plugin.js. At line 274, this.extractLoading function use a variable called 'relativeModulePath'. With module A, this variable use '/' on paths (D:/Code/DL-GEST/src/client/app/app.module) and there is no problem with it, but with module B, this variable use '\\\\' on path and then, emit error I wrote lines before.\r\n\r\nI have changed function `var relativeModulePath = this._resolveModulePath(module, containingFile)` to\r\n`var relativeModulePath = this._resolveModulePath(module, containingFile).replace(/\\\\/g,'/')` and it solves my problems.\r\n\r\nIs there a better approach to solve it??\r\n\r\nThanks and excuse my english :). \r\n> ---------------------------------------------------------------\r\n> Thanks! We'll be in touch soon.\r\n","author":{"url":"https://github.com/jmpmscorp","@type":"Person","name":"jmpmscorp"},"datePublished":"2016-12-16T06:42:01Z","url":"https://github.com/angular/angular-cli/issues/3593"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:2e934e56-4c18-4fe9-c279-def711e033f2
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE52C:EA09B:171A3BF:1E99988:6B013E59
html-safe-nonce77000a3b078634602d87f2451fbf33ba665d0321443c3f1a56b94081ae7c502a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNTJDOkVBMDlCOjE3MUEzQkY6MUU5OTk4ODo2QjAxM0U1OSIsInZpc2l0b3JfaWQiOiIzOTY5MTI1MDA4MjY5MTk2ODg5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac46cfdd03c736e22225c0c8a056e5a49efc24c55dd606f52f2cfe112a62116818
hovercard-subject-tagissue:195991916
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/3593/issue_layout
twitter:imagehttps://opengraph.githubassets.com/26d1bbfb683ee703f77ea0dd52775b9221afdd1c946aec03fe5ae72f904baf84/angular/angular-cli/issues/3593
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/26d1bbfb683ee703f77ea0dd52775b9221afdd1c946aec03fe5ae72f904baf84/angular/angular-cli/issues/3593
og:image:altPlease provide us with the following information: OS? Windows 10 Versions. angular-cli: 1.0.0-beta.22-1 node: 6.7.0 os: win32 x64 Repro steps. Suppose there are two nested lazy modules routes like ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejmpmscorp
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/angular/angular-cli git https://github.com/angular/angular-cli.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id36891867
octolytics-dimension-repository_nwoangular/angular-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id36891867
octolytics-dimension-repository_network_root_nwoangular/angular-cli
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular-cli/issues/3593#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F3593
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F3593
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular-cli
Reloadhttps://github.com/angular/angular-cli/issues/3593
Reloadhttps://github.com/angular/angular-cli/issues/3593
Reloadhttps://github.com/angular/angular-cli/issues/3593
angularhttps://github.com/angular
angular-clihttps://github.com/angular/angular-cli
Codehttps://github.com/angular/angular-cli
Issues198 (198)https://github.com/angular/angular-cli/issues
Pull requests23 (23)https://github.com/angular/angular-cli/pulls
Actionshttps://github.com/angular/angular-cli/actions
Security and quality8 (8)https://github.com/angular/angular-cli/security
Insightshttps://github.com/angular/angular-cli/insights
https://github.com/angular/angular-cli
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/3593
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/3593
ngtools with nested lazy modules routinghttps://github.com/angular/angular-cli/issues/3593#top
P1Impacts a large percentage of users; if a workaround exists it is partial or overly painfulhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22P1%22
type: bug/fixhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
https://github.com/jmpmscorp
jmpmscorphttps://github.com/jmpmscorp
on Dec 16, 2016https://github.com/angular/angular-cli/issues/3593#issue-195991916
@NgModulehttps://github.com/NgModule
@NgModulehttps://github.com/NgModule
https://github.com/masaanli
masaanlihttps://github.com/masaanli
on Dec 16, 2016https://github.com/angular/angular-cli/issues/3593#issuecomment-267551592
https://github.com/Destreyf
Destreyfhttps://github.com/Destreyf
on Dec 17, 2016https://github.com/angular/angular-cli/issues/3593#issuecomment-267726937
@jmpmscorphttps://github.com/jmpmscorp
filipesilvahttps://github.com/filipesilva
hanslhttps://github.com/hansl
on Dec 30, 2016https://github.com/angular/angular-cli/issues/3593#event-908129400
filipesilvahttps://github.com/filipesilva
package: @ngtools/webpackhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22package%3A%20%40ngtools%2Fwebpack%22
P1Impacts a large percentage of users; if a workaround exists it is partial or overly painfulhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22P1%22
type: bug/fixhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
on Dec 30, 2016https://github.com/angular/angular-cli/issues/3593#event-908129502
https://github.com/filipesilva
filipesilvahttps://github.com/filipesilva
on Dec 30, 2016https://github.com/angular/angular-cli/issues/3593#issuecomment-269790700
#3663https://github.com/angular/angular-cli/issues/3663
filipesilvahttps://github.com/filipesilva
completedhttps://github.com/angular/angular-cli/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Dec 30, 2016https://github.com/angular/angular-cli/issues/3593#event-908179761
https://github.com/Destreyf
Destreyfhttps://github.com/Destreyf
on Dec 30, 2016https://github.com/angular/angular-cli/issues/3593#issuecomment-269796486
@filipesilvahttps://github.com/filipesilva
#3663https://github.com/angular/angular-cli/issues/3663
https://github.com/filipesilva
filipesilvahttps://github.com/filipesilva
on Dec 30, 2016https://github.com/angular/angular-cli/issues/3593#issuecomment-269797217
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Sep 6, 2019https://github.com/angular/angular-cli/issues/3593#issuecomment-528859361
automatic conversation locking policyhttps://github.com/angular/angular/blob/67d80f/docs/GITHUB_PROCESS.md#conversation-locking
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
hanslhttps://github.com/hansl
on Sep 6, 2019https://github.com/angular/angular-cli/issues/3593#event-2614398000
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Sep 6, 2019https://github.com/angular/angular-cli/issues/3593#event-2614398013
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular-cli/issues/3593
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/3593
P1Impacts a large percentage of users; if a workaround exists it is partial or overly painfulhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22P1%22
type: bug/fixhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.