René's URL Explorer Experiment


Title: IVY Error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class · Issue #35399 · angular/angular · GitHub

Open Graph Title: IVY Error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class · Issue #35399 · angular/angular

X Title: IVY Error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class · Issue #35399 · angular/angular

Description: 🐞 bug report Affected Package The issue might be related to package ng-packagr Is this a regression? Yes, the previous version in which this bug was not present was: 8.2.14 Description Possible duplicate of #35331, #34983, #35255, and #3...

Open Graph Description: 🐞 bug report Affected Package The issue might be related to package ng-packagr Is this a regression? Yes, the previous version in which this bug was not present was: 8.2.14 Description Possible dup...

X Description: 🐞 bug report Affected Package The issue might be related to package ng-packagr Is this a regression? Yes, the previous version in which this bug was not present was: 8.2.14 Description Possible dup...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"IVY Error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class","articleBody":"# 🐞 bug report\r\n\r\n### Affected Package\r\n\u003c!-- Can you pin-point one or more @angular/* packages as the source of the bug? -->\r\n\u003c!-- ✍️edit: --> The issue might be related to package \r\n[ng-packagr](https://github.com/ng-packagr/ng-packagr)\r\n\r\n### Is this a regression?\r\n\r\n\u003c!-- Did this behavior use to work in the previous version? -->\r\n\u003c!-- ✍️--> Yes, the previous version in which this bug was not present was: 8.2.14\r\n\r\n\r\n### Description\r\nPossible duplicate of #35331, #34983, #35255, and #30972, but I'm including a minimal reproduction repo. Building with IVY throws the following error (see the Exception or Error section)\r\n\r\n![StackBlitz Error](https://user-images.githubusercontent.com/1767135/74392714-e0448a00-4dbc-11ea-8bd8-a938995b0394.png)\r\n\r\nOur real app, which uses a shared module, throws a slightly different error:\r\n\r\n![Concise Error](https://user-images.githubusercontent.com/1767135/74392793-1a159080-4dbd-11ea-9cc8-ba873769fefd.png)\r\n\r\nRunning the ng-packagr postinstall script adds \"__ivy_ngcc__\" folders to some of our other dependencies, but does not touch the [angular2-highcharts](https://github.com/gevgeny/angular2-highcharts) library. The library does not use the Angular Package Format, which might be part of the problem, but I'm not the library's author and have never built an ES6/angular library myself, so I'm just guessing at a potential fix.\r\n\r\nUnfortunately, the library is no longer maintained, but it is one of our app's core/major dependencies. I also attempted to rebuild the library from the source files after adding the following to the library's package.json file:\r\n\r\n\u003cpre>\u003ccode>\r\n\"postinstall\": \"ngcc --properties es2015 browser module main --first-only --create-ivy-entry-points\",\r\n\"ngPackage\": {\r\n  \"lib\": {\r\n    \"entryFile\": \"index.d.ts\"\r\n  }\r\n},\r\n\u003c/pre>\u003c/code>\r\n\r\nBut this produces the following error:\r\n\r\n![Error](https://user-images.githubusercontent.com/1767135/74393168-20583c80-4dbe-11ea-8024-d00a1ff2c4cc.png)\r\n\r\nThere is no \"files\" array provided in the library's package.json file, so I'm not sure what the error is referring to. I fixed all Angular 9-related issues prior to re-building the library, so I assume it has to do with the way it's packaged or how it exports the modules/components.\r\n\r\n## 🔬 Minimal Reproduction\r\n\r\nStackBlitz\r\nhttps://angular-ivy-cant-be-resolved.stackblitz.io\r\n\r\nGitHub repo in case StackBlitz isn't working:\r\nhttps://github.com/stevethemacguy/angular-ivy-cant-be-resolved-bug\r\n\r\nSteps to Reproduce\r\n1. Download or clone the repo\r\n2. npm install\r\n3. ng build (or ng serve)\r\n\r\nExpected behavior: IVY builds the app\r\nActual behavior: IVY displays an error.\r\n\r\n## 🔥 Exception or Error\r\n\u003cpre>\u003ccode>ERROR in node_modules/angular2-highcharts/dist/index.d.ts:8:22 - error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class\r\n\r\n8 export declare class ChartModule {\r\n\u003c/code>\u003c/pre>\r\n\r\n\r\n## 🌍  Your Environment\r\n**Angular Version:**\r\n\u003cpre>\u003ccode>Angular CLI: 9.0.2\r\nNode: 10.15.3\r\nOS: darwin x64\r\n\r\nAngular: 9.0.1\r\n... animations, 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.2\r\n@angular-devkit/build-angular     0.900.2\r\n@angular-devkit/build-optimizer   0.900.2\r\n@angular-devkit/build-webpack     0.900.2\r\n@angular-devkit/core              9.0.2\r\n@angular-devkit/schematics        9.0.2\r\n@angular/cli                      9.0.2\r\n@ngtools/webpack                  9.0.2\r\n@schematics/angular               9.0.2\r\n@schematics/update                0.900.2\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\nAfter disabling IVY, our real app successfully builds in AOT (prod mode) using Angular 9.0.1, so the issue seems to be an Angular regression that is un-related to our app (except for the [angular2-highcharts](https://github.com/gevgeny/angular2-highcharts) dependency). Our app uses a custom angular/webpack build. It does not use Angular CLI.","author":{"url":"https://github.com/stevethemacguy","@type":"Person","name":"stevethemacguy"},"datePublished":"2020-02-13T02:41:54Z","url":"https://github.com/angular/angular/issues/35399"}

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:e5359ff6-a1a5-2179-f0bc-17b4926574db
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB7A6:38C5CF:1216D65:17239ED:6B010859
html-safe-nonce7879de1ef8326cd3c5719b186f0e840c827cf73127e0258edd41fdf539499681
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCN0E2OjM4QzVDRjoxMjE2RDY1OjE3MjM5RUQ6NkIwMTA4NTkiLCJ2aXNpdG9yX2lkIjoiMTU1MTM1MjE4MzQ5OTMyNzU3NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac8060659360499d7ad8b265480bc6a823b723ee745505dbcb35b6485eae2b193d
hovercard-subject-tagissue:564402588
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/35399/issue_layout
twitter:imagehttps://opengraph.githubassets.com/269b01013326adffb849cf5f6b8b3e42f798450579b422c799726800f92b0dce/angular/angular/issues/35399
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/269b01013326adffb849cf5f6b8b3e42f798450579b422c799726800f92b0dce/angular/angular/issues/35399
og:image:alt🐞 bug report Affected Package The issue might be related to package ng-packagr Is this a regression? Yes, the previous version in which this bug was not present was: 8.2.14 Description Possible dup...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamestevethemacguy
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-targetcanary-2
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/35399#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F35399
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%2F35399
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/35399
Reloadhttps://github.com/angular/angular/issues/35399
Reloadhttps://github.com/angular/angular/issues/35399
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/35399
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/35399
IVY Error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule classhttps://github.com/angular/angular/issues/35399#top
area: compilerIssues related to `ngc`, Angular's template compilerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20compiler%22
needsTriagehttps://github.com/angular/angular/milestone/83
https://github.com/stevethemacguy
stevethemacguyhttps://github.com/stevethemacguy
on Feb 13, 2020https://github.com/angular/angular/issues/35399#issue-564402588
ng-packagrhttps://github.com/ng-packagr/ng-packagr
#35331https://github.com/angular/angular/issues/35331
#34983https://github.com/angular/angular/issues/34983
#35255https://github.com/angular/angular/issues/35255
#30972https://github.com/angular/angular/issues/30972
https://user-images.githubusercontent.com/1767135/74392714-e0448a00-4dbc-11ea-8bd8-a938995b0394.png
https://user-images.githubusercontent.com/1767135/74392793-1a159080-4dbd-11ea-9cc8-ba873769fefd.png
angular2-highchartshttps://github.com/gevgeny/angular2-highcharts
https://user-images.githubusercontent.com/1767135/74393168-20583c80-4dbe-11ea-8024-d00a1ff2c4cc.png
https://angular-ivy-cant-be-resolved.stackblitz.iohttps://angular-ivy-cant-be-resolved.stackblitz.io
https://github.com/stevethemacguy/angular-ivy-cant-be-resolved-bughttps://github.com/stevethemacguy/angular-ivy-cant-be-resolved-bug
angular2-highchartshttps://github.com/gevgeny/angular2-highcharts
Nexthttps://github.com/angular/angular/issues/35399?timeline_page=1
https://github.com/robertlimanto
robertlimantohttps://github.com/robertlimanto
on Feb 13, 2020https://github.com/angular/angular/issues/35399#issuecomment-585606012
karahttps://github.com/kara
area: compilerIssues related to `ngc`, Angular's template compilerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20compiler%22
comp: ivyhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22comp%3A%20ivy%22
on Feb 13, 2020https://github.com/angular/angular/issues/35399#event-3036025343
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
on Feb 13, 2020https://github.com/angular/angular/issues/35399#event-3036025429
https://github.com/houdass
houdasshttps://github.com/houdass
on Feb 14, 2020https://github.com/angular/angular/issues/35399#issuecomment-586144657
https://github.com/atakangah
atakangahhttps://github.com/atakangah
on Feb 14, 2020https://github.com/angular/angular/issues/35399#issuecomment-586256948
https://github.com/gkalpak
gkalpakhttps://github.com/gkalpak
on Feb 14, 2020https://github.com/angular/angular/issues/35399#issuecomment-586335510
@houdasshttps://github.com/houdass
https://github.com/AliAdravi
AliAdravihttps://github.com/AliAdravi
on Feb 14, 2020https://github.com/angular/angular/issues/35399#issuecomment-586459902
https://github.com/ImmutableVector
ImmutableVectorhttps://github.com/ImmutableVector
on Feb 16, 2020https://github.com/angular/angular/issues/35399#issuecomment-586662889
https://github.com/flash-me
flash-mehttps://github.com/flash-me
on Feb 16, 2020https://github.com/angular/angular/issues/35399#issuecomment-586731755
@stevethemacguyhttps://github.com/stevethemacguy
https://github.com/FranzZemen
FranzZemenhttps://github.com/FranzZemen
on Feb 16, 2020https://github.com/angular/angular/issues/35399#issuecomment-586734020
https://github.com/flash-me
flash-mehttps://github.com/flash-me
on Feb 16, 2020https://github.com/angular/angular/issues/35399#issuecomment-586742346
https://user-images.githubusercontent.com/5240450/74611141-8f54ce80-50f9-11ea-9466-25a792a78985.png
https://user-images.githubusercontent.com/5240450/74611117-7ba96800-50f9-11ea-90f9-c4fe2fb6aaf3.png
https://github.com/paksouse
paksousehttps://github.com/paksouse
on Feb 17, 2020https://github.com/angular/angular/issues/35399#issuecomment-586993656
https://github.com/FranzZemen
FranzZemenhttps://github.com/FranzZemen
on Feb 17, 2020https://github.com/angular/angular/issues/35399#issuecomment-587000484
@paksousehttps://github.com/paksouse
…https://github.com/angular/angular/issues/35399
#35399https://github.com/angular/angular/issues/35399
https://github.com/notifications/unsubscribe-auth/ABO2BYTMKL6IFAG73LE57H3RDKGH7ANCNFSM4KUIUUCQhttps://github.com/notifications/unsubscribe-auth/ABO2BYTMKL6IFAG73LE57H3RDKGH7ANCNFSM4KUIUUCQ
https://github.com/petebacondarwin
petebacondarwinhttps://github.com/petebacondarwin
on Mar 24, 2020https://github.com/angular/angular/issues/35399#issuecomment-603503473
https://github.com/yamaha252
yamaha252https://github.com/yamaha252
on Mar 25, 2020https://github.com/angular/angular/issues/35399#issuecomment-603647326
@petebacondarwinhttps://github.com/petebacondarwin
https://github.com/yamaha252
yamaha252https://github.com/yamaha252
on Mar 25, 2020https://github.com/angular/angular/issues/35399#issuecomment-603663751
https://github.com/mtgibbs
mtgibbshttps://github.com/mtgibbs
on Mar 25, 2020https://github.com/angular/angular/issues/35399#issuecomment-603878507
@dhubenshttps://github.com/dhubens
@petebacondarwinhttps://github.com/petebacondarwin
https://github.com/yazan-mehrez
yazan-mehrezhttps://github.com/yazan-mehrez
on Mar 26, 2020https://github.com/angular/angular/issues/35399#issuecomment-604377637
@clement911https://github.com/clement911
https://github.com/clement911
clement911https://github.com/clement911
on Mar 26, 2020https://github.com/angular/angular/issues/35399#issuecomment-604381461
@yazan-mehrezhttps://github.com/yazan-mehrez
#36060https://github.com/angular/angular/issues/36060
https://github.com/yazan-mehrez
yazan-mehrezhttps://github.com/yazan-mehrez
on Mar 26, 2020https://github.com/angular/angular/issues/35399#issuecomment-604387263
@yazan-mehrezhttps://github.com/yazan-mehrez
#36060https://github.com/angular/angular/issues/36060
@clement911https://github.com/clement911
https://github.com/flash-me
flash-mehttps://github.com/flash-me
on Mar 26, 2020https://github.com/angular/angular/issues/35399#issuecomment-604421252
@petebacondarwinhttps://github.com/petebacondarwin
herehttps://github.com/angular/angular/issues/35399#issuecomment-600146117
https://github.com/petebacondarwin
petebacondarwinhttps://github.com/petebacondarwin
on Mar 26, 2020https://github.com/angular/angular/issues/35399#issuecomment-604516805
@flash-mehttps://github.com/flash-me
https://github.com/flash-me
flash-mehttps://github.com/flash-me
on Mar 26, 2020https://github.com/angular/angular/issues/35399#issuecomment-604554874
@petebacondarwinhttps://github.com/petebacondarwin
https://github.com/petebacondarwin
petebacondarwinhttps://github.com/petebacondarwin
on Mar 26, 2020https://github.com/angular/angular/issues/35399#issuecomment-604637509
@flash-mehttps://github.com/flash-me
https://github.com/JoelKThomas
JoelKThomashttps://github.com/JoelKThomas
on Apr 3, 2020https://github.com/angular/angular/issues/35399#issuecomment-608254294
https://github.com/HanaaGhasoub
HanaaGhasoubhttps://github.com/HanaaGhasoub
on Apr 20, 2020https://github.com/angular/angular/issues/35399#issuecomment-616797100
https://user-images.githubusercontent.com/30862539/79797298-4cacae00-8357-11ea-9787-82099759868a.png
https://user-images.githubusercontent.com/30862539/79797470-939aa380-8357-11ea-843d-2d0c85ddf896.png
https://user-images.githubusercontent.com/30862539/79797535-b4fb8f80-8357-11ea-827f-489499308cc7.png
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on May 21, 2020https://github.com/angular/angular/issues/35399#issuecomment-632180110
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 May 21, 2020https://github.com/angular/angular/issues/35399#event-3361298875
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/35399
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/35399
area: compilerIssues related to `ngc`, Angular's template compilerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20compiler%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.