René's URL Explorer Experiment


Title: [@ngtools/webpack] Webpack cannot distinguish on context and would fail to load the proper one. · Issue #10128 · angular/angular-cli · GitHub

Open Graph Title: [@ngtools/webpack] Webpack cannot distinguish on context and would fail to load the proper one. · Issue #10128 · angular/angular-cli

X Title: [@ngtools/webpack] Webpack cannot distinguish on context and would fail to load the proper one. · Issue #10128 · angular/angular-cli

Description: Versions node: v8.11.0 npm: 5.7.1 Windows 10 "@angular/animations": "5.2.9", "@angular/cdk": "5.2.4", "@angular/common": "5.2.9", "@angular/compiler": "5.2.9", "@angular/core": "5.2.9", "@angular/forms": "5.2.9", "@angular/http": "5.2.9"...

Open Graph Description: Versions node: v8.11.0 npm: 5.7.1 Windows 10 "@angular/animations": "5.2.9", "@angular/cdk": "5.2.4", "@angular/common": "5.2.9", "@angular/compiler": "5.2.9", "@angular/core": "5.2.9", "@angular/f...

X Description: Versions node: v8.11.0 npm: 5.7.1 Windows 10 "@angular/animations": "5.2.9", "@angular/cdk": "5.2.4", "@angular/common": "5.2.9", "@...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[@ngtools/webpack] Webpack cannot distinguish on context and would fail to load the proper one.","articleBody":"\u003c!--\r\nWe will close this issue if you don't provide the needed information.\r\nFor feature requests, delete the form below and describe the requirements and use case.\r\n-->\r\n\r\n### Versions\r\n```\r\nnode: v8.11.0\r\nnpm: 5.7.1\r\nWindows 10\r\n```\r\n```\r\n\"@angular/animations\": \"5.2.9\",\r\n\"@angular/cdk\": \"5.2.4\",\r\n\"@angular/common\": \"5.2.9\",\r\n\"@angular/compiler\": \"5.2.9\",\r\n\"@angular/core\": \"5.2.9\",\r\n\"@angular/forms\": \"5.2.9\",\r\n\"@angular/http\": \"5.2.9\",\r\n\"@angular/platform-browser\": \"5.2.9\",\r\n\"@angular/platform-browser-dynamic\": \"5.2.9\",\r\n\"@angular/router\": \"5.2.9\",\r\n\"@angular/compiler-cli\": \"5.2.9\",\r\n\"@ngtools/webpack\": \"1.10.2\",\r\n\"typescript\": \"2.7.2\",\r\n\"webpack\": \"3.11.0\",\r\n```\r\n\r\n### Repro steps\r\n**app-routing.module.ts**\r\n```\r\nexport const ROUTES: Routes = [\r\n    {\r\n        loadChildren: \"./student/student.module#StudentModule\",\r\n        path: \"student\",\r\n    },\r\n];\r\n```\r\n\r\n**student-routing.module.ts**\r\n```\r\nexport const ROUTES: Routes = [\r\n     {\r\n         loadChildren: \"./question/question.module#QuestionModule\",\r\n         path: \"question\",\r\n     },\r\n     {\r\n         loadChildren: \"./settings/settings.module#SettingsModule\",\r\n         path: \"settings\",\r\n     },\r\n];\r\n```\r\n\r\n**question-routing.module.ts**\r\n```\r\nexport const ROUTES: Routes = [\r\n     {\r\n         loadChildren: \"./settings/settings.module#SettingsModule\",\r\n         path: \"settings\",\r\n     },\r\n];\r\n```\r\n\r\n### Observed behavior\r\n```\r\nERROR in NaNbut they point to different modules \"(C:/Projects/Web/App/src/student/settings/settings.module.ts and \"C:/Projects/Web/App/src/student/questions/settings/settings.module.ts\"). Webpack cannot distinguish on context and would fail to load the proper one.\r\n```\r\n\r\n### Desired behavior\r\nWe have a lot of modules with the same names (settings, instructions, etc.), but they are belong to different parents with different urls, they are not exported outside of the parent's scope. It works fine with awesome-typescript-loader, angular-router-loader and angular2-template-loader. We expected the same behavior with `@ngtools/webpack`.\r\n\r\n\r\n### Mention any other details that might be useful (optional)\r\n\r\nI removed all other lazy modules from the project to check and this issue was still there.\r\nTried to use absolute paths as described here https://github.com/angular/angular-cli/issues/8722#issuecomment-366002955, but had another issue\r\n`ERROR in Could not resolve module App/src/student/student.module relative to C:/Projects/Web/App/src/app-routing.module.ts`\r\n\r\n**`tsconfig.json`**\r\n```\r\n{\r\n  \"compilerOptions\": {\r\n    \"emitDecoratorMetadata\": true,\r\n    \"experimentalDecorators\": true,\r\n    \"lib\": [ \"es2015\", \"dom\" ],\r\n    \"module\": \"commonjs\",\r\n    \"moduleResolution\": \"node\",\r\n    \"removeComments\": true,\r\n    \"skipLibCheck\": true,\r\n    \"sourceMap\": true,\r\n    \"target\": \"es5\"\r\n  },\r\n  \"exclude\": [\r\n    \"node_modules\"\r\n  ]\r\n}\r\n```\r\n\r\n**webpack.config**\r\n```\r\nconst srcPath = path.resolve(__dirname, \"App/src\");\r\n\r\nmodule.exports = {\r\n    entry: {\r\n        app: srcPath + \"/main.ts\",\r\n        polyfills: srcPath + \"/polyfills.ts\",\r\n        vendor: srcPath + \"/vendor.ts\",\r\n    },\r\n    resolve: {\r\n        extensions: [\".ts\", \".js\"],\r\n    },\r\n    module: {\r\n        loaders: [\r\n            {\r\n                    test: /(?:\\.ngfactory\\.js|\\.ngstyle\\.js|\\.ts)$/,\r\n                    loader: \"@ngtools/webpack\",\r\n            },\r\n        ]\r\n    },\r\n    plugins: [\r\n            new AngularCompilerPlugin({\r\n                tsConfigPath: \"./tsconfig.json\",\r\n                entryModule: \"./App/src/app.module#AppModule\",\r\n            }),\r\n            new webpack.optimize.ModuleConcatenationPlugin(),\r\n            new HardSourceWebpackPlugin(),\r\n    ]\r\n};\r\n```","author":{"url":"https://github.com/evgeniyefimov","@type":"Person","name":"evgeniyefimov"},"datePublished":"2018-04-02T10:23:14Z","url":"https://github.com/angular/angular-cli/issues/10128"}

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:8597e149-bd5c-bb12-e0e1-fb1767cc4137
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8F18:3F8AB1:19FB529:2112478:6B013368
html-safe-nonce6b375f05d386ae5a824482638d45910357c761d4f77813e212d4808896ccad95
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjE4OjNGOEFCMToxOUZCNTI5OjIxMTI0Nzg6NkIwMTMzNjgiLCJ2aXNpdG9yX2lkIjoiNTE0NDcwMTk0MTM3NjQzMDk1MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac2a7765305fcd3dfcbcc96d4e029623b4568baa229d92321def07cfba32859e50
hovercard-subject-tagissue:310450426
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/10128/issue_layout
twitter:imagehttps://opengraph.githubassets.com/303aa8bda493b585b6b66dce3abf38bc04d1becdb8420e2894bd8dd3f297502a/angular/angular-cli/issues/10128
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/303aa8bda493b585b6b66dce3abf38bc04d1becdb8420e2894bd8dd3f297502a/angular/angular-cli/issues/10128
og:image:altVersions node: v8.11.0 npm: 5.7.1 Windows 10 "@angular/animations": "5.2.9", "@angular/cdk": "5.2.4", "@angular/common": "5.2.9", "@angular/compiler": "5.2.9", "@angular/core": "5.2.9", "@angular/f...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameevgeniyefimov
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-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular-cli/issues/10128#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F10128
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%2F10128
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/10128
Reloadhttps://github.com/angular/angular-cli/issues/10128
Reloadhttps://github.com/angular/angular-cli/issues/10128
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/10128
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/10128
[@ngtools/webpack] Webpack cannot distinguish on context and would fail to load the proper one.https://github.com/angular/angular-cli/issues/10128#top
https://github.com/mgechev
freq2: mediumhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22freq2%3A%20medium%22
severity3: brokenhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22severity3%3A%20broken%22
workaround1: obvioushttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22workaround1%3A%20obvious%22
https://github.com/evgeniyefimov
evgeniyefimovhttps://github.com/evgeniyefimov
on Apr 2, 2018https://github.com/angular/angular-cli/issues/10128#issue-310450426
#8722 (comment)https://github.com/angular/angular-cli/issues/8722#issuecomment-366002955
https://github.com/tobihagemann
tobihagemannhttps://github.com/tobihagemann
on Aug 7, 2018https://github.com/angular/angular-cli/issues/10128#issuecomment-411044182
https://stackoverflow.com/questions/47601637/angular-4-could-not-resolve-submodule-for-for-routing#comment88223393_48028980https://stackoverflow.com/questions/47601637/angular-4-could-not-resolve-submodule-for-for-routing#comment88223393_48028980
https://github.com/mgechev
mgechevhttps://github.com/mgechev
on Dec 26, 2018https://github.com/angular/angular-cli/issues/10128#issuecomment-450014737
https://github.com/socialbi
socialbihttps://github.com/socialbi
on Jan 9, 2019https://github.com/angular/angular-cli/issues/10128#issuecomment-452565332
https://github.com/eggp
eggphttps://github.com/eggp
on Jan 9, 2019https://github.com/angular/angular-cli/issues/10128#issuecomment-452917852
@mgechevhttps://github.com/mgechev
https://github.com/eggp/ng-7-lazy-build-errorhttps://github.com/eggp/ng-7-lazy-build-error
https://user-images.githubusercontent.com/1015211/50937093-a2b35600-1472-11e9-9ca1-d8353727a9d6.png
https://github.com/jvoigt
jvoigthttps://github.com/jvoigt
on Jan 22, 2019https://github.com/angular/angular-cli/issues/10128#issuecomment-456482330
https://github.com/mgechev
mgechevhttps://github.com/mgechev
on Jan 22, 2019https://github.com/angular/angular-cli/issues/10128#issuecomment-456491436
mgechevhttps://github.com/mgechev
needs: discussionOn the agenda for team meeting to determine next stepshttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22needs%3A%20discussion%22
on Jan 22, 2019https://github.com/angular/angular-cli/issues/10128#event-2089482427
hanslhttps://github.com/hansl
needs: discussionOn the agenda for team meeting to determine next stepshttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22needs%3A%20discussion%22
on Jan 24, 2019https://github.com/angular/angular-cli/issues/10128#event-2095275728
https://github.com/mgechev
mgechevhttps://github.com/mgechev
on Jan 24, 2019https://github.com/angular/angular-cli/issues/10128#issuecomment-457325605
mgechevhttps://github.com/mgechev
effort3: hard (weeks/months)https://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22effort3%3A%20hard%20(weeks%2Fmonths)%22
freq2: mediumhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22freq2%3A%20medium%22
severity3: brokenhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22severity3%3A%20broken%22
workaround1: obvioushttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22workaround1%3A%20obvious%22
on Jan 24, 2019https://github.com/angular/angular-cli/issues/10128#event-2095438359
mgechevhttps://github.com/mgechev
on Jan 24, 2019https://github.com/angular/angular-cli/issues/10128#event-2095438503
https://github.com/jvoigt
jvoigthttps://github.com/jvoigt
on Jan 25, 2019https://github.com/angular/angular-cli/issues/10128#issuecomment-457553167
@mgechevhttps://github.com/mgechev
https://github.com/mgechev
mgechevhttps://github.com/mgechev
on Jan 25, 2019https://github.com/angular/angular-cli/issues/10128#issuecomment-457665487
https://github.com/eggp
eggphttps://github.com/eggp
on Jan 27, 2019https://github.com/angular/angular-cli/issues/10128#issuecomment-457926493
eggp/ng-7-lazy-build-error@c2405b2https://github.com/eggp/ng-7-lazy-build-error/commit/c2405b2eaef1a31e39fedc1b879b490a4d52cecd
https://github.com/mgechev
mgechevhttps://github.com/mgechev
on Jan 27, 2019https://github.com/angular/angular-cli/issues/10128#issuecomment-457960688
@eggphttps://github.com/eggp
https://github.com/eggp
eggphttps://github.com/eggp
on Feb 6, 2019https://github.com/angular/angular-cli/issues/10128#issuecomment-461002749
https://github.com/farajfarook
farajfarookhttps://github.com/farajfarook
on Mar 5, 2019https://github.com/angular/angular-cli/issues/10128#issuecomment-469547706
@mgechevhttps://github.com/mgechev
angular/angular#23878https://github.com/angular/angular/issues/23878
https://github.com/gabrielKoloral
gabrielKoloralhttps://github.com/gabrielKoloral
on Mar 28, 2019https://github.com/angular/angular-cli/issues/10128#issuecomment-477686202
https://github.com/pauldraper
pauldraperhttps://github.com/pauldraper
on Apr 12, 2019https://github.com/angular/angular-cli/issues/10128#issuecomment-482477852
https://github.com/gurkin33
gurkin33https://github.com/gurkin33
on May 8, 2019https://github.com/angular/angular-cli/issues/10128#issuecomment-490633798
@farajfarookhttps://github.com/farajfarook
https://github.com/ashikjs
ashikjshttps://github.com/ashikjs
on Jun 28, 2019https://github.com/angular/angular-cli/issues/10128#issuecomment-506845389
@farajfarookhttps://github.com/farajfarook
https://github.com/clydin
clydinhttps://github.com/clydin
on May 27, 2020https://github.com/angular/angular-cli/issues/10128#issuecomment-634370591
https://angular.io/api/router/LoadChildrenCallbackhttps://angular.io/api/router/LoadChildrenCallback
clydinhttps://github.com/clydin
completedhttps://github.com/angular/angular-cli/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on May 27, 2020https://github.com/angular/angular-cli/issues/10128#event-3376013130
clydinhttps://github.com/clydin
triage #1https://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22triage%20%231%22
effort3: hard (weeks/months)https://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22effort3%3A%20hard%20(weeks%2Fmonths)%22
on May 27, 2020https://github.com/angular/angular-cli/issues/10128#event-3376013502
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Jun 27, 2020https://github.com/angular/angular-cli/issues/10128#issuecomment-650520001
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
on Jun 27, 2020https://github.com/angular/angular-cli/issues/10128#event-3488773827
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular-cli/issues/10128
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/10128
mgechevhttps://github.com/mgechev
freq2: mediumhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22freq2%3A%20medium%22
severity3: brokenhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22severity3%3A%20broken%22
workaround1: obvioushttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22workaround1%3A%20obvious%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.