René's URL Explorer Experiment


Title: Ivy compiler doesn't work with secondary entry points in libraries using dist folder · Issue #35188 · angular/angular · GitHub

Open Graph Title: Ivy compiler doesn't work with secondary entry points in libraries using dist folder · Issue #35188 · angular/angular

X Title: Ivy compiler doesn't work with secondary entry points in libraries using dist folder · Issue #35188 · angular/angular

Description: 🐞 bug report Affected Package @angular/compiler@9.0.0 (ngcc) Is this a regression? Not known Description We have a monorepo managed with the Angular CLI with several libraries, each with secondary entry points, and a showcase. We build t...

Open Graph Description: 🐞 bug report Affected Package @angular/compiler@9.0.0 (ngcc) Is this a regression? Not known Description We have a monorepo managed with the Angular CLI with several libraries, each with secondary ...

X Description: 🐞 bug report Affected Package @angular/compiler@9.0.0 (ngcc) Is this a regression? Not known Description We have a monorepo managed with the Angular CLI with several libraries, each with secondary ...

Opengraph URL: https://github.com/angular/angular/issues/35188

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Ivy compiler doesn't work with secondary entry points in libraries using dist folder","articleBody":"# 🐞 bug report\r\n\r\n### Affected Package\r\n@angular/compiler@9.0.0 (ngcc)\r\n\r\n\r\n### Is this a regression?\r\nNot known\r\n\r\n\r\n### Description\r\nWe have a monorepo managed with the Angular CLI with several libraries, each with secondary entry points, and a showcase. We build the libraries using the ViewEngine compiler and the showcase with Ivy. Once we build the showcase, Ivy seems to fail to compile imported symbols in secondary entry points, which results in the error code NG6002 (See error below).\r\n\r\nWe used the following guide for secondary entry points: https://github.com/ng-packagr/ng-packagr/blob/v9.0.0/docs/secondary-entrypoints.md\r\nThe built library artifacts reside in the dist folder (default Angular CLI configuration)\r\n\r\nStrangely enough, when we copy the build artifacts into node_modules and remove the `compilerOptions.paths` entry in tsconfig.json, ngcc seems to compile it successfully.\r\nIf we leave it in dist, ngcc seems to stop compiling secondary entrypoints after the first/entry file.\r\n\r\n## 🔬 Minimal Reproduction\r\n1. clone https://github.com/jeripeierSBB/lib-with-secondary-entry-points\r\n2. `ng build my-lib --prod`\r\n3. `ng build showcase --prod` (or `ng serve`)\r\n\r\n## 🔥 Exception or Error\r\n\u003cpre>\u003ccode>\r\nERROR in dist/my-lib/my-feature/my-feature.module.d.ts:1:22 - error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class\r\n\r\n1 export declare class MyFeatureModule {\r\n\r\n\u003c/code>\u003c/pre>\r\n\r\n\r\n## 🌍  Your Environment\r\n\r\n**Angular Version:**\r\n\u003cpre>\u003ccode>\r\nAngular CLI: 9.0.0\r\nNode: 13.7.0\r\nOS: darwin x64\r\n\r\nAngular: 9.0.0\r\n... animations, cli, common, compiler, compiler-cli, core, forms\r\n... language-service, platform-browser, platform-browser-dynamic\r\n... router\r\nIvy Workspace: Yes\r\n\r\nPackage                            Version\r\n------------------------------------------------------------\r\n@angular-devkit/architect          0.900.0\r\n@angular-devkit/build-angular      0.900.0\r\n@angular-devkit/build-ng-packagr   0.900.0\r\n@angular-devkit/build-optimizer    0.900.0\r\n@angular-devkit/build-webpack      0.900.0\r\n@angular-devkit/core               9.0.0\r\n@angular-devkit/schematics         9.0.0\r\n@ngtools/webpack                   9.0.0\r\n@schematics/angular                9.0.0\r\n@schematics/update                 0.900.0\r\nng-packagr                         9.0.0\r\nrxjs                               6.5.4\r\ntypescript                         3.7.5\r\nwebpack                            4.41.2\r\n\r\n\u003c/code>\u003c/pre>\r\n\r\n**Anything else relevant?**\r\n\r\n## Workaround\r\n1. `ng build my-lib --prod`\r\n2. copy content of dist folder to node_modules\r\n3. remove `compilerOptions.paths` in tsconfig.json\r\n4. `ng build showcase --prod` (or `ng serve`)\r\n5. compiles successfully","author":{"url":"https://github.com/jeripeierSBB","@type":"Person","name":"jeripeierSBB"},"datePublished":"2020-02-06T13:39:50Z","url":"https://github.com/angular/angular/issues/35188"}

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:6692884f-3d60-07ec-5623-57390445e478
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDB1C:928E2:105572C:15D2AFC:6B01143D
html-safe-nonce88c2a43458a3c9d9eda57ae2a1b5e48d6ee32aebc634b5a8b31b5acf3a0c64ef
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQjFDOjkyOEUyOjEwNTU3MkM6MTVEMkFGQzo2QjAxMTQzRCIsInZpc2l0b3JfaWQiOiI0OTA4NDk1NTMyMzk1Nzc2NjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmace38a52b7cfa3019c43206e194a237cc854864c1adb1efc0da34734efd17b9dac
hovercard-subject-tagissue:561019232
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/35188/issue_layout
twitter:imagehttps://opengraph.githubassets.com/3bf5cac561f6618a119eabcfc4a97b990e2324f600022157f40d3698fcd2b68e/angular/angular/issues/35188
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3bf5cac561f6618a119eabcfc4a97b990e2324f600022157f40d3698fcd2b68e/angular/angular/issues/35188
og:image:alt🐞 bug report Affected Package @angular/compiler@9.0.0 (ngcc) Is this a regression? Not known Description We have a monorepo managed with the Angular CLI with several libraries, each with secondary ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejeripeierSBB
hostnamegithub.com
expected-hostnamegithub.com
Nonecb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124
turbo-cache-controlno-preview
go-importgithub.com/angular/angular git https://github.com/angular/angular.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id24195339
octolytics-dimension-repository_nwoangular/angular
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24195339
octolytics-dimension-repository_network_root_nwoangular/angular
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
release2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/35188#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F35188
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%2Fissues%2F35188
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
Reloadhttps://github.com/angular/angular/issues/35188
Reloadhttps://github.com/angular/angular/issues/35188
Reloadhttps://github.com/angular/angular/issues/35188
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues835 (835)https://github.com/angular/angular/issues
Pull requests141 (141)https://github.com/angular/angular/pulls
Discussionshttps://github.com/angular/angular/discussions
Actionshttps://github.com/angular/angular/actions
Projectshttps://github.com/angular/angular/projects
Security and quality40 (40)https://github.com/angular/angular/security
Insightshttps://github.com/angular/angular/insights
https://github.com/angular/angular
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/35188
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/35188
Ivy compiler doesn't work with secondary entry points in libraries using dist folderhttps://github.com/angular/angular/issues/35188#top
https://github.com/petebacondarwin
freq2: mediumhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22freq2%3A%20medium%22
state: has PRhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22state%3A%20has%20PR%22
type: bug/fixhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
Backloghttps://github.com/angular/angular/milestone/82
https://github.com/jeripeierSBB
jeripeierSBBhttps://github.com/jeripeierSBB
on Feb 6, 2020https://github.com/angular/angular/issues/35188#issue-561019232
https://github.com/ng-packagr/ng-packagr/blob/v9.0.0/docs/secondary-entrypoints.mdhttps://github.com/ng-packagr/ng-packagr/blob/v9.0.0/docs/secondary-entrypoints.md
https://github.com/jeripeierSBB/lib-with-secondary-entry-pointshttps://github.com/jeripeierSBB/lib-with-secondary-entry-points
pkozlowski-opensourcehttps://github.com/pkozlowski-opensource
area: compilerIssues related to `ngc`, Angular's template compilerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20compiler%22
on Feb 6, 2020https://github.com/angular/angular/issues/35188#event-3015449766
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
on Feb 6, 2020https://github.com/angular/angular/issues/35188#event-3015449827
https://github.com/jeripeierSBB
jeripeierSBBhttps://github.com/jeripeierSBB
on Feb 6, 2020https://github.com/angular/angular/issues/35188#issuecomment-583129499
alxhubhttps://github.com/alxhub
petebacondarwinhttps://github.com/petebacondarwin
on Feb 6, 2020https://github.com/angular/angular/issues/35188#event-3015823512
alxhubhttps://github.com/alxhub
freq2: mediumhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22freq2%3A%20medium%22
severity2: inconvenienthttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22severity2%3A%20inconvenient%22
type: bug/fixhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
on Feb 6, 2020https://github.com/angular/angular/issues/35188#event-3015823888
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
Backloghttps://github.com/angular/angular/milestone/82
on Feb 6, 2020https://github.com/angular/angular/issues/35188#event-3015823938
alxhubhttps://github.com/alxhub
severity3: brokenhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22severity3%3A%20broken%22
severity2: inconvenienthttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22severity2%3A%20inconvenient%22
on Feb 6, 2020https://github.com/angular/angular/issues/35188#event-3015824688
https://github.com/petebacondarwin
petebacondarwinhttps://github.com/petebacondarwin
on Feb 7, 2020https://github.com/angular/angular/issues/35188#issuecomment-583290309
angular/packages/compiler-cli/ngcc/src/entry_point_finder/targeted_entry_point_finder.tshttps://github.com/angular/angular/blob/d3650ce3d849634a3a8ffb8e34d9d3e99b378e5d/packages/compiler-cli/ngcc/src/entry_point_finder/targeted_entry_point_finder.ts#L97-L142
d3650cehttps://github.com/angular/angular/commit/d3650ce3d849634a3a8ffb8e34d9d3e99b378e5d
petebacondarwinhttps://github.com/petebacondarwin
on Feb 7, 2020https://github.com/angular/angular/issues/35188#event-3017375415
fix(ngcc): ensure that path-mapped secondary entry-points are process…https://github.com/petebacondarwin/angular/commit/d8aa74936a29e3e737b01210ba0e933ddf304913
https://docs.github.com/articles/closing-issues-via-commit-messages
d8aa749https://github.com/petebacondarwin/angular/commit/d8aa74936a29e3e737b01210ba0e933ddf304913
https://github.com/petebacondarwin
petebacondarwinhttps://github.com/petebacondarwin
on Feb 7, 2020https://github.com/angular/angular/issues/35188#issuecomment-583358807
#35227https://github.com/angular/angular/pull/35227
https://github.com/petebacondarwin
petebacondarwinhttps://github.com/petebacondarwin
on Feb 7, 2020https://github.com/angular/angular/issues/35188#issuecomment-583378506
https://github.com/jeripeierSBB
jeripeierSBBhttps://github.com/jeripeierSBB
on Feb 7, 2020https://github.com/angular/angular/issues/35188#issuecomment-583383913
@petebacondarwinhttps://github.com/petebacondarwin
petebacondarwinhttps://github.com/petebacondarwin
comp: ngcchttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22comp%3A%20ngcc%22
state: has PRhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22state%3A%20has%20PR%22
area: compilerIssues related to `ngc`, Angular's template compilerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20compiler%22
on Feb 7, 2020https://github.com/angular/angular/issues/35188#event-3017846089
mahakhttps://github.com/mahak
on Feb 7, 2020https://github.com/angular/angular/issues/35188#event-3018844476
fix(ngcc): ensure that path-mapped secondary entry-points are process…https://github.com/mahak/angular/commit/54c3a5da3f9c40e6e1157eff6337898993636170
https://docs.github.com/articles/closing-issues-via-commit-messages
54c3a5dhttps://github.com/mahak/angular/commit/54c3a5da3f9c40e6e1157eff6337898993636170
karahttps://github.com/kara
on Feb 7, 2020https://github.com/angular/angular/issues/35188#event-3018844482
fix(ngcc): ensure that path-mapped secondary entry-points are process…https://github.com/angular/angular/commit/c3c11403c0f3a65d7e7993e5a76a3ed0157c1b76
https://docs.github.com/articles/closing-issues-via-commit-messages
c3c1140https://github.com/angular/angular/commit/c3c11403c0f3a65d7e7993e5a76a3ed0157c1b76
karahttps://github.com/kara
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
54c3a5dhttps://github.com/angular/angular/commit/54c3a5da3f9c40e6e1157eff6337898993636170
on Feb 7, 2020https://github.com/angular/angular/issues/35188#event-3018844609
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Mar 9, 2020https://github.com/angular/angular/issues/35188#issuecomment-596623393
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 Mar 9, 2020https://github.com/angular/angular/issues/35188#event-3111337092
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/35188
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/35188
petebacondarwinhttps://github.com/petebacondarwin
freq2: mediumhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22freq2%3A%20medium%22
state: has PRhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22state%3A%20has%20PR%22
type: bug/fixhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
BacklogNo due datehttps://github.com/angular/angular/milestone/82
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.