René's URL Explorer Experiment


Title: ng build AOT + lazy loading from different package · Issue #5986 · angular/angular-cli · GitHub

Open Graph Title: ng build AOT + lazy loading from different package · Issue #5986 · angular/angular-cli

X Title: ng build AOT + lazy loading from different package · Issue #5986 · angular/angular-cli

Description: Bug Report or Feature Request (mark with an x) - [x ] bug report -> please search issues before submitting - [x ] feature request Versions. Windows 7 and MacOS $ ng --version @angular/cli: 1.0.0 node: 7.7.2 os: win32 x64 @angular/common:...

Open Graph Description: Bug Report or Feature Request (mark with an x) - [x ] bug report -> please search issues before submitting - [x ] feature request Versions. Windows 7 and MacOS $ ng --version @angular/cli: 1.0.0 no...

X Description: Bug Report or Feature Request (mark with an x) - [x ] bug report -> please search issues before submitting - [x ] feature request Versions. Windows 7 and MacOS $ ng --version @angular/cli: 1.0.0...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ng build AOT + lazy loading from different package","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- [x ] 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\nWindows 7 and MacOS\r\n$ ng --version\r\n@angular/cli: 1.0.0\r\nnode: 7.7.2\r\nos: win32 x64\r\n@angular/common: 4.0.2\r\n@angular/compiler: 4.0.2\r\n@angular/core: 4.0.2\r\n@angular/forms: 4.0.2\r\n@angular/http: 4.0.2\r\n@angular/platform-browser: 4.0.2\r\n@angular/platform-browser-dynamic: 4.0.2\r\n@angular/router: 4.0.2\r\n@angular/cli: 1.0.0\r\n@angular/compiler-cli: 4.0.2\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\r\nStack Overflow Question:\r\nhttp://stackoverflow.com/questions/43441732/angular-2-error-when-ng-build-aot-lazy-loading-from-different-package\r\n\r\nSample Repo:\r\nhttps://github.com/chorew/AngularSample\r\n\r\nRunning the app\r\n\r\n1. clone the repo\r\n2. npm install\r\n3. npm run dev:library\r\n\r\nconst routes: Routes = [\r\n  **{ path: 'library', loadChildren: '@myapp/library/src/index#ModuleAModule' }** // lazy loading a module from a different package\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```\r\nmain.app@0.0.0 build C:\\Users\\Juan.Pablo\\projects\\POC\\AngularSample\\packages\\main.app\r\n> ng build --aot\r\n\r\nHash: dfaf89ef3b1bb2e81c75\r\nTime: 6307ms\r\nchunk    {0} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 158 kB {4} [initial] [rendered]\r\nchunk    {1} main.bundle.js, main.bundle.js.map (main) 28.3 kB {3} [initial] [rendered]\r\nchunk    {2} styles.bundle.js, styles.bundle.js.map (styles) 9.77 kB {4} [initial] [rendered]\r\nchunk    {3} vendor.bundle.js, vendor.bundle.js.map (vendor) 1.37 MB [initial] [rendered]\r\nchunk    {4} inline.bundle.js, inline.bundle.js.map (inline) 0 bytes [entry] [rendered]\r\n\r\nERROR in ./src/$$_gendir async\r\nModule not found: Error: Can't resolve 'C:\\Users\\Juan.Pablo\\projects\\POC\\AngularSample\\packages\\main.app\\src\\node_modules\\@myapp\\library\\src\\index.\r\nd.ngfactory.ts' in 'C:\\Users\\Juan.Pablo\\projects\\POC\\AngularSample\\packages\\main.app\\src\\$$_gendir'\r\n @ ./src/$$_gendir async\r\n @ ./~/@angular/core/@angular/core.es5.js\r\n @ ./src/main.ts\r\n @ multi ./src/main.ts\r\n\r\n```\r\n\r\nNotice how it is trying to find the lazy loaded module inside the `main.app\\src` folder\r\n\r\n\r\nApp src path\r\nC:\\Users\\Juan.Pablo\\projects\\POC\\AngularSample\\packages\\main.app\\src\\ \r\n\r\nLazy loaded from package\r\n@myapp\\library\\src\\index.d.ngfactory.ts\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\n\r\nThis is a sample app with 2 sub-packages.\r\n\r\npackages/main.app\r\npackages/library\r\nthe goal is to have a library package with different modules of the app \r\nand have some specific modules lazy loaded.\r\n\r\nThe use case is to be able to load modules from different packages/repos developed by different teams and pull just the needed packages from npm to configure the routes.\r\n\r\nconst routes: Routes = [\r\n  { path: 'library', loadChildren: '@myapp/library/src/index#ModuleAModule' }, // developed by Team A\r\n  { path: 'anotherLibrary', loadChildren: '@myapp/anotherLibrary/src/index#ModuleAModule' } // developed by Team B\r\n];\r\n\r\nand so on.\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\nMain.app was generated with ng cli\r\nLibrary package is custom project using ngc and gulp\r\n","author":{"url":"https://github.com/jpguevara","@type":"Person","name":"jpguevara"},"datePublished":"2017-04-17T14:06:24Z","url":"https://github.com/angular/angular-cli/issues/5986"}

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:a9e5397e-20e1-6119-37f9-9de8c7c715e4
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB0D8:23CF06:14D6F3A:1AAF1AD:6B011C8D
html-safe-nonce967e92527f8477d33d32dd5a7571d8270e6ee78e0fd9c2855608d08e793f8898
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMEQ4OjIzQ0YwNjoxNEQ2RjNBOjFBQUYxQUQ6NkIwMTFDOEQiLCJ2aXNpdG9yX2lkIjoiMzgxMTU3MDA4NTg0MDEwMDQ5MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacf8c1d32a7bbf21e8b1af5211eaa643ce7b816a9b06c7f302035666aaf7ac5821
hovercard-subject-tagissue:222139017
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/5986/issue_layout
twitter:imagehttps://opengraph.githubassets.com/963bfeae507d70f0e20dc6a572d735689cc2619142bf6fbfca22dd4047f526d8/angular/angular-cli/issues/5986
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/963bfeae507d70f0e20dc6a572d735689cc2619142bf6fbfca22dd4047f526d8/angular/angular-cli/issues/5986
og:image:altBug Report or Feature Request (mark with an x) - [x ] bug report -> please search issues before submitting - [x ] feature request Versions. Windows 7 and MacOS $ ng --version @angular/cli: 1.0.0 no...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejpguevara
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/5986#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F5986
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%2F5986
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/5986
Reloadhttps://github.com/angular/angular-cli/issues/5986
Reloadhttps://github.com/angular/angular-cli/issues/5986
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/5986
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/5986
ng build AOT + lazy loading from different packagehttps://github.com/angular/angular-cli/issues/5986#top
https://github.com/hansl
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
freq1: lowOnly reported by a handful of users who observe it rarelyhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22freq1%3A%20low%22
needs: investigationRequires some digging to determine if action is neededhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22needs%3A%20investigation%22
severity3: brokenhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22severity3%3A%20broken%22
https://github.com/jpguevara
jpguevarahttps://github.com/jpguevara
on Apr 17, 2017https://github.com/angular/angular-cli/issues/5986#issue-222139017
http://stackoverflow.com/questions/43441732/angular-2-error-when-ng-build-aot-lazy-loading-from-different-packagehttp://stackoverflow.com/questions/43441732/angular-2-error-when-ng-build-aot-lazy-loading-from-different-package
https://github.com/chorew/AngularSamplehttps://github.com/chorew/AngularSample
@myapphttps://github.com/myapp
https://github.com/ChenReuven
ChenReuvenhttps://github.com/ChenReuven
on Apr 18, 2017https://github.com/angular/angular-cli/issues/5986#issuecomment-294836947
https://github.com/kylecordes
kylecordeshttps://github.com/kylecordes
on Apr 19, 2017https://github.com/angular/angular-cli/issues/5986#issuecomment-295456794
kylecordeshttps://github.com/kylecordes
on Apr 19, 2017https://github.com/angular/angular-cli/issues/5986#event-1049439522
Temporarily turn off AOT for Travishttps://github.com/OasisDigital/angular-enterprise-example/commit/76a7302203c716958c4bc0043d814c4d1ca49252
76a7302https://github.com/OasisDigital/angular-enterprise-example/commit/76a7302203c716958c4bc0043d814c4d1ca49252
Temporarily turn off AOT for Travishttps://github.com/OasisDigital/angular-enterprise-example/commit/7b2a89d213dc634a894ed917ee1a59658a2329ab
7b2a89dhttps://github.com/OasisDigital/angular-enterprise-example/commit/7b2a89d213dc634a894ed917ee1a59658a2329ab
filipesilvahttps://github.com/filipesilva
hanslhttps://github.com/hansl
on May 5, 2017https://github.com/angular/angular-cli/issues/5986#event-1070389066
filipesilvahttps://github.com/filipesilva
freq1: lowOnly reported by a handful of users who observe it rarelyhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22freq1%3A%20low%22
needs: investigationRequires some digging to determine if action is neededhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22needs%3A%20investigation%22
package4: @angular-sdk/webpackhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22package4%3A%20%40angular-sdk%2Fwebpack%22
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgenthttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22P3%22
severity3: brokenhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22severity3%3A%20broken%22
on May 5, 2017https://github.com/angular/angular-cli/issues/5986#event-1070389570
https://github.com/filipesilva
filipesilvahttps://github.com/filipesilva
on May 5, 2017https://github.com/angular/angular-cli/issues/5986#issuecomment-299438261
@hanslhttps://github.com/hansl
https://github.com/kylecordes
kylecordeshttps://github.com/kylecordes
on May 22, 2017https://github.com/angular/angular-cli/issues/5986#issuecomment-303193962
https://github.com/jjlgjkkl
jjlgjkklhttps://github.com/jjlgjkkl
on May 26, 2017https://github.com/angular/angular-cli/issues/5986#issuecomment-304165773
https://github.com/mahmood-sajjadi
mahmood-sajjadihttps://github.com/mahmood-sajjadi
on Jul 2, 2017https://github.com/angular/angular-cli/issues/5986#issuecomment-312522113
https://github.com/mahmood-sajjadi
mahmood-sajjadihttps://github.com/mahmood-sajjadi
on Jul 2, 2017https://github.com/angular/angular-cli/issues/5986#issuecomment-312522286
@filipesilvahttps://github.com/filipesilva
filipesilvahttps://github.com/filipesilva
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
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgenthttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22P3%22
on Aug 21, 2017https://github.com/angular/angular-cli/issues/5986#event-1213890699
https://github.com/filipesilva
filipesilvahttps://github.com/filipesilva
on Aug 21, 2017https://github.com/angular/angular-cli/issues/5986#issuecomment-323707167
@hanslhttps://github.com/hansl
https://github.com/hansl
hanslhttps://github.com/hansl
on Aug 21, 2017https://github.com/angular/angular-cli/issues/5986#issuecomment-323876700
jpguevara/AngularSample#2https://github.com/jpguevara/AngularSample/pull/2
hanslhttps://github.com/hansl
completedhttps://github.com/angular/angular-cli/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Aug 21, 2017https://github.com/angular/angular-cli/issues/5986#event-1214980711
https://github.com/MitkoTschimev
MitkoTschimevhttps://github.com/MitkoTschimev
on Sep 18, 2017https://github.com/angular/angular-cli/issues/5986#issuecomment-330341146
@hanslhttps://github.com/hansl
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Sep 7, 2019https://github.com/angular/angular-cli/issues/5986#issuecomment-529104759
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 Sep 7, 2019https://github.com/angular/angular-cli/issues/5986#event-2616187960
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular-cli/issues/5986
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/5986
hanslhttps://github.com/hansl
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
freq1: lowOnly reported by a handful of users who observe it rarelyhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22freq1%3A%20low%22
needs: investigationRequires some digging to determine if action is neededhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22needs%3A%20investigation%22
severity3: brokenhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22severity3%3A%20broken%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.