René's URL Explorer Experiment


Title: NG6002/NG6003: Ivy with yarn workspaces and hoisting (repro) · Issue #35747 · angular/angular · GitHub

Open Graph Title: NG6002/NG6003: Ivy with yarn workspaces and hoisting (repro) · Issue #35747 · angular/angular

X Title: NG6002/NG6003: Ivy with yarn workspaces and hoisting (repro) · Issue #35747 · angular/angular

Description: 🐞 bug report Affected Package The issue is probably caused by package @angular/compiler Is this a regression? Not sure. Did not use Ivy before. Description There is an error when compiling with Ivy when using yarn workspaces and the angu...

Open Graph Description: 🐞 bug report Affected Package The issue is probably caused by package @angular/compiler Is this a regression? Not sure. Did not use Ivy before. Description There is an error when compiling with Ivy...

X Description: 🐞 bug report Affected Package The issue is probably caused by package @angular/compiler Is this a regression? Not sure. Did not use Ivy before. Description There is an error when compiling with Ivy...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"NG6002/NG6003: Ivy with yarn workspaces and hoisting (repro)","articleBody":"\u003c!--🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅\r\n\r\nOh hi there! 😄\r\n\r\nTo expedite issue processing please search open and closed issues before submitting a new one.\r\nExisting issues often contain information about workarounds, resolution, or progress updates.\r\n\r\n🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅-->\r\n\r\n\r\n# 🐞 bug report\r\n\r\n### Affected Package\r\n The issue is probably caused by package @angular/compiler\r\n\r\n### Is this a regression?\r\n\r\nNot sure. Did not use Ivy before.\r\n\r\n### Description\r\n\r\nThere is an error when compiling with Ivy when using yarn workspaces and the angular libraries are hoisted to the root `node_modules` in a particular way by yarn.\r\n\r\nI have attached a repro.\r\n\r\n## 🔬 Minimal Reproduction\r\n\r\nRepro at: https://github.com/andreialecu/ang9-ng6002\r\n\r\nRun \r\n```bash\r\nyarn\r\nyarn repro\r\n```\r\n^ Fails\r\n\r\nNote that if you delete the `library` directory from under `packages`, the compilation will finish just fine.\r\n\r\n```\r\nrm -rf packages/library\r\nyarn && yarn repro\r\n```\r\n^ Works\r\n\r\nAlternatively, adding `enableIvy: false` to tsconfig.json also works.\r\n\r\n## 🔥 Exception or Error\r\n\u003cpre>\u003ccode>\r\n0% compiling\r\nCompiling @ngx-loading-bar/http-client : es2015 as esm2015\r\n\r\nchunk {main} main.js, main.js.map (main) 2.04 kB [initial] [rendered]\r\nchunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 701 bytes [initial] [rendered]\r\nchunk {runtime} runtime.js, runtime.js.map (runtime) 6.15 kB [entry] [rendered]\r\nchunk {styles} styles.js, styles.js.map (styles) 10.5 kB [initial] [rendered]\r\nchunk {vendor} vendor.js, vendor.js.map (vendor) 341 kB [initial] [rendered]\r\nDate: 2020-02-28T07:56:25.844Z - Hash: f57d00fadb4a1cc320dd - Time: 4147ms\r\n\r\nERROR in Failed to compile entry-point @ngx-loading-bar/http-client (es2015 as esm2015) due to compilation errors:\r\n../../node_modules/@angular/common/http/http.d.ts:2801:22 - error NG6002: Appears in the NgModule.imports of LoadingBarHttpClientModule, but could not be resolved to an NgModule class.\r\n\r\nThis likely means that the library (@angular/common/http) which declares HttpClientModule has not been processed correctly by ngcc, or is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy.\r\n\r\n2801 export declare class HttpClientModule {\r\n                          ~~~~~~~~~~~~~~~~\r\n../../node_modules/@angular/common/http/http.d.ts:2801:22 - error NG6003: Appears in the NgModule.exports of LoadingBarHttpClientModule, but could not be resolved to an NgModule, Component, Directive, or Pipe class.\r\n\r\nThis likely means that the library (@angular/common/http) which declares HttpClientModule has not been processed correctly by ngcc, or is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy.\r\n\r\n2801 export declare class HttpClientModule {\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\n\u003c!-- run `ng version` and paste output below -->\r\n\u003c!-- ✍️-->\r\nAngular CLI: 9.0.4\r\nNode: 13.7.0\r\nOS: linux x64\r\n\r\nAngular: 9.0.4\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: \u003cerror>\r\n\r\nPackage                           Version\r\n-----------------------------------------------------------\r\n@angular-devkit/architect         0.900.4\r\n@angular-devkit/build-angular     0.900.4\r\n@angular-devkit/build-optimizer   0.900.4\r\n@angular-devkit/build-webpack     0.900.4\r\n@angular-devkit/core              9.0.4\r\n@angular-devkit/schematics        9.0.4\r\n@ngtools/webpack                  9.0.4\r\n@schematics/angular               9.0.4\r\n@schematics/update                0.900.4\r\nrxjs                              6.5.4\r\ntypescript                        3.7.5\r\nwebpack                           4.41.2\r\n\u003c/code>\u003c/pre>\r\n\r\n**Anything else relevant?**\r\n\u003c!-- ✍️Is this a browser specific issue? If so, please specify the browser and version. -->\r\n\r\n\u003c!-- ✍️Do any of these matter: operating system, IDE, package manager, HTTP server, ...? If so, please mention it below. -->\r\n\r\nProbably related to path resolution, workspaces use symlink. Also related: https://github.com/angular/angular/issues/35447","author":{"url":"https://github.com/andreialecu","@type":"Person","name":"andreialecu"},"datePublished":"2020-02-28T08:03:24Z","url":"https://github.com/angular/angular/issues/35747"}

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:ec398d99-bb51-f430-83a8-532f8972a2d5
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC0B4:237673:1268FF1:1899B60:6B0123B6
html-safe-nonce18bbc7fa0fa29aaba513da5da69faa3a62d4f8d217c473e6160659dcab4ba6f3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMEI0OjIzNzY3MzoxMjY4RkYxOjE4OTlCNjA6NkIwMTIzQjYiLCJ2aXNpdG9yX2lkIjoiMjczODUwOTQyNjQ3MzM3ODc0MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac3b8a7605911dd039a367abbdf99963e9c282f84d0cef824d53f5c6d8666fa486
hovercard-subject-tagissue:572593148
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/35747/issue_layout
twitter:imagehttps://opengraph.githubassets.com/19a8d582d7c758ecea1995d4940c65fe59bce09b2d1db437ac109bfdbacce6a3/angular/angular/issues/35747
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/19a8d582d7c758ecea1995d4940c65fe59bce09b2d1db437ac109bfdbacce6a3/angular/angular/issues/35747
og:image:alt🐞 bug report Affected Package The issue is probably caused by package @angular/compiler Is this a regression? Not sure. Did not use Ivy before. Description There is an error when compiling with Ivy...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameandreialecu
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/35747#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F35747
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%2F35747
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/35747
Reloadhttps://github.com/angular/angular/issues/35747
Reloadhttps://github.com/angular/angular/issues/35747
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/35747
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/35747
NG6002/NG6003: Ivy with yarn workspaces and hoisting (repro)https://github.com/angular/angular/issues/35747#top
type: bug/fixhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
workaround2: non-obvioushttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22workaround2%3A%20non-obvious%22
needsTriagehttps://github.com/angular/angular/milestone/83
https://github.com/andreialecu
andreialecuhttps://github.com/andreialecu
on Feb 28, 2020https://github.com/angular/angular/issues/35747#issue-572593148
https://github.com/andreialecu/ang9-ng6002https://github.com/andreialecu/ang9-ng6002
#35447https://github.com/angular/angular/issues/35447
Nexthttps://github.com/angular/angular/issues/35747?timeline_page=1
https://github.com/andreialecu
andreialecuhttps://github.com/andreialecu
on Feb 28, 2020https://github.com/angular/angular/issues/35747#issuecomment-592403528
petebacondarwinhttps://github.com/petebacondarwin
comp: ngcchttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22comp%3A%20ngcc%22
type: bug/fixhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
on Feb 28, 2020https://github.com/angular/angular/issues/35747#event-3081806626
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
on Feb 28, 2020https://github.com/angular/angular/issues/35747#event-3081806701
https://github.com/petebacondarwin
petebacondarwinhttps://github.com/petebacondarwin
on Feb 28, 2020https://github.com/angular/angular/issues/35747#issuecomment-592502943
petebacondarwinhttps://github.com/petebacondarwin
workaround2: non-obvioushttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22workaround2%3A%20non-obvious%22
on Feb 28, 2020https://github.com/angular/angular/issues/35747#event-3081860463
https://github.com/andreialecu
andreialecuhttps://github.com/andreialecu
on Mar 1, 2020https://github.com/angular/angular/issues/35747#issuecomment-593094406
@petebacondarwinhttps://github.com/petebacondarwin
https://github.com/andreialecu
andreialecuhttps://github.com/andreialecu
on Mar 1, 2020https://github.com/angular/angular/issues/35747#issuecomment-593095777
@petebacondarwinhttps://github.com/petebacondarwin
https://github.com/petebacondarwin
petebacondarwinhttps://github.com/petebacondarwin
on Mar 5, 2020https://github.com/angular/angular/issues/35747#issuecomment-595151410
https://github.com/angular/ngcc-validation/tree/master/projects/angularflex-layout-ngcchttps://github.com/angular/ngcc-validation/tree/master/projects/angularflex-layout-ngcc
https://github.com/andreialecu
andreialecuhttps://github.com/andreialecu
on Mar 5, 2020https://github.com/angular/angular/issues/35747#issuecomment-595270061
https://github.com/edocbuhtig
edocbuhtighttps://github.com/edocbuhtig
on Mar 7, 2020https://github.com/angular/angular/issues/35747#issuecomment-596079969
https://github.com/pc-perrycima
pc-perrycimahttps://github.com/pc-perrycima
on Mar 7, 2020https://github.com/angular/angular/issues/35747#issuecomment-596100537
https://github.com/chriswep
chriswephttps://github.com/chriswep
on Mar 7, 2020https://github.com/angular/angular/issues/35747#issuecomment-596100759
https://github.com/andreialecu
andreialecuhttps://github.com/andreialecu
on Mar 23, 2020https://github.com/angular/angular/issues/35747#issuecomment-602563362
@petebacondarwinhttps://github.com/petebacondarwin
https://github.com/petebacondarwin
petebacondarwinhttps://github.com/petebacondarwin
on Mar 25, 2020https://github.com/angular/angular/issues/35747#issuecomment-603816129
@mpoirierthttps://github.com/mpoiriert
https://github.com/mpoiriert
mpoirierthttps://github.com/mpoiriert
on Mar 25, 2020https://github.com/angular/angular/issues/35747#issuecomment-603818616
https://github.com/andreialecu
andreialecuhttps://github.com/andreialecu
on Mar 25, 2020https://github.com/angular/angular/issues/35747#issuecomment-603820168
@mpoirierthttps://github.com/mpoiriert
https://github.com/Hermholtz
Hermholtzhttps://github.com/Hermholtz
on Mar 25, 2020https://github.com/angular/angular/issues/35747#issuecomment-603820517
@petebacondarwinhttps://github.com/petebacondarwin
https://github.com/mpoiriert
mpoirierthttps://github.com/mpoiriert
on Mar 25, 2020https://github.com/angular/angular/issues/35747#issuecomment-603846722
@andreialecuhttps://github.com/andreialecu
@Hermholtzhttps://github.com/Hermholtz
https://github.com/edocbuhtig
edocbuhtighttps://github.com/edocbuhtig
on Mar 25, 2020https://github.com/angular/angular/issues/35747#issuecomment-604027349
ionic-team/ionic-framework#20716https://github.com/ionic-team/ionic-framework/issues/20716
https://github.com/Hermholtz
Hermholtzhttps://github.com/Hermholtz
on Mar 26, 2020https://github.com/angular/angular/issues/35747#issuecomment-604369390
petebacondarwinhttps://github.com/petebacondarwin
on Mar 26, 2020https://github.com/angular/angular/issues/35747#event-3169781001
fix(ngcc): correctly identify the package path of secondary entry-pointshttps://github.com/petebacondarwin/angular/commit/49fdbbd4dc8c869dbd404bc2d2c7c72e4067dc5b
https://docs.github.com/articles/closing-issues-via-commit-messages
49fdbbdhttps://github.com/petebacondarwin/angular/commit/49fdbbd4dc8c869dbd404bc2d2c7c72e4067dc5b
alxhubhttps://github.com/alxhub
on Mar 27, 2020https://github.com/angular/angular/issues/35747#event-3173531619
fix(ngcc): correctly identify the package path of secondary entry-poi…https://github.com/angular/angular/commit/e53b6863755dd70fc01bdae9939b201b8102d82f
https://docs.github.com/articles/closing-issues-via-commit-messages
e53b686https://github.com/angular/angular/commit/e53b6863755dd70fc01bdae9939b201b8102d82f
alxhubhttps://github.com/alxhub
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
995cd15https://github.com/angular/angular/commit/995cd15a69cb672b66c5413c587b114aa5745ebd
on Mar 27, 2020https://github.com/angular/angular/issues/35747#event-3173531782
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Apr 27, 2020https://github.com/angular/angular/issues/35747#issuecomment-620080891
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 Apr 27, 2020https://github.com/angular/angular/issues/35747#event-3276503986
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/35747
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/35747
type: bug/fixhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
workaround2: non-obvioushttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22workaround2%3A%20non-obvious%22
needsTriageNo due datehttps://github.com/angular/angular/milestone/83
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.