Title: IVY Error NG6002: Appears in the NgModule.imports of AppModule · Issue #36424 · angular/angular · GitHub
Open Graph Title: IVY Error NG6002: Appears in the NgModule.imports of AppModule · Issue #36424 · angular/angular
X Title: IVY Error NG6002: Appears in the NgModule.imports of AppModule · Issue #36424 · angular/angular
Description: 🐞 bug report Affected Package ngcc Is this a regression? Yes, it works at 9.0.0 Description It actually works in the end. I think it is caused by the order of the ngcc compilation. The problem is like when I have a package A using anothe...
Open Graph Description: 🐞 bug report Affected Package ngcc Is this a regression? Yes, it works at 9.0.0 Description It actually works in the end. I think it is caused by the order of the ngcc compilation. The problem is l...
X Description: 🐞 bug report Affected Package ngcc Is this a regression? Yes, it works at 9.0.0 Description It actually works in the end. I think it is caused by the order of the ngcc compilation. The problem is l...
Opengraph URL: https://github.com/angular/angular/issues/36424
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"IVY Error NG6002: Appears in the NgModule.imports of AppModule","articleBody":"# 🐞 bug report\r\n\r\n### Affected Package\r\n\r\nngcc\r\n\r\n### Is this a regression?\r\n\r\nYes, it works at 9.0.0\r\n\r\n### Description\r\n\r\nIt actually works in the end. I think it is caused by the order of the ngcc compilation. \r\n\r\nThe problem is like when I have a package A using another package B. During ngcc compilation, somehow package A runs before package B.\r\n\r\nAnd it throws an error. However, once package B got compiled, it will compile package A again and it will work.\r\n\r\nAnd the build will work as well. \r\n\r\nI think it is a bug that it compiles out of order. It should compiles base on the dependency list. \r\n\r\nThe good thing is it actually fixes itself in the end.\r\n\r\n## 🔬 Minimal Reproduction\r\n\r\nI can't reproduce in a small example yet. \r\n\r\n## 🔥 Exception or Error\r\n\u003cpre>\u003ccode>\r\nCompiling @m*****b/ngm-image-gallery : es2015 as esm2015\r\n**Compiling @m*****b/ngm-image-gallery : es2015 as esm2015**\r\nError: Failed to compile entry-point @m*****b/ngm-image-gallery (es2015 as esm2015) due to compilation errors:\r\nnode_modules/@m*****b/ng-helper/components/confirm-button/confirm-button.module.d.ts:1:22 - error NG6002: Appears in the NgModule.imports of NgmImageGalleryModule, but could not be resolved to an NgModule class.\r\n\r\nThis likely means that the library (@m*****b/ng-helper/components/confirm-button) which declares NgmConfirmButtonModule 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\n1 export declare class NgmConfirmButtonModule {\r\n ~~~~~~~~~~~~~~~~~~~~~~\r\n\r\nError: Failed to compile entry-point @m*****b/ngm-image-gallery (es2015 as esm2015) due to compilation errors:\r\nnode_modules/@m*****b/ng-helper/components/confirm-button/confirm-button.module.d.ts:1:22 - error NG6002: Appears in the NgModule.imports of NgmImageGalleryModule, but could not be resolved to an NgModule class.\r\n\r\nThis likely means that the library (@m*****b/ng-helper/components/confirm-button) which declares NgmConfirmButtonModule 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\n**1 export declare class NgmConfirmButtonModule {**\r\n ~~~~~~~~~~~~~~~~~~~~~~\r\n\r\n0% compiling\r\nCompiling @m*****b/ng-helper/components/millers-logo : es2015 as esm2015\r\n\r\n**Compiling @m*****b/ng-helper/components/confirm-button : es2015 as esm2015**\r\n\r\n**Compiling @m*****b/ngm-image-gallery : es2015 as esm2015**\r\n\r\nCompiling @m*****b/ng-helper/components/alert-dialog : es2015 as esm2015\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.1.0\r\nNode: 10.16.0\r\nOS: win32 x64\r\n\r\nAngular: 9.1.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.901.0\r\n@angular-devkit/build-angular 0.901.0\r\n@angular-devkit/build-ng-packagr 0.901.0\r\n@angular-devkit/build-optimizer 0.901.0\r\n@angular-devkit/build-webpack 0.901.0\r\n@angular-devkit/core 9.1.0\r\n@angular-devkit/schematics 9.1.0\r\n@angular-devkit/schematics-cli 0.901.0\r\n@angular/cdk 9.2.0\r\n@angular/flex-layout 9.0.0-beta.29\r\n@angular/material 9.2.0\r\n@ngtools/webpack 9.1.0\r\n@schematics/angular 9.1.0\r\n@schematics/schematics 0.901.0\r\n@schematics/update 0.901.0\r\nng-packagr 9.1.0\r\nrxjs 6.5.5\r\ntypescript 3.8.3\r\nwebpack 4.42.0\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","author":{"url":"https://github.com/maxisam","@type":"Person","name":"maxisam"},"datePublished":"2020-04-03T21:04:04Z","url":"https://github.com/angular/angular/issues/36424"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ff70c065-f5ca-c0eb-5b99-7ad425efa182 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DFC8:1D86C4:1753E7F:1DA3B26:6B013ABC |
| html-safe-nonce | afbc3e928f4aaa4e6d0f9e11b65dca41c8f7a00005c4b6477dd738f4f4c8f910 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERkM4OjFEODZDNDoxNzUzRTdGOjFEQTNCMjY6NkIwMTNBQkMiLCJ2aXNpdG9yX2lkIjoiMjU1MjI2Mjc3ODE4MjI1MzI0NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bb4ea53df05c33513147dcb4bde7201dbb1dee205e3ad3e76c2d7e064b247010 |
| hovercard-subject-tag | issue:593639832 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/36424/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0ce6fe5b68916675c76aedef1e38e8527a0c133cad00f3ca1f43fdd38b8bd52c/angular/angular/issues/36424 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0ce6fe5b68916675c76aedef1e38e8527a0c133cad00f3ca1f43fdd38b8bd52c/angular/angular/issues/36424 |
| og:image:alt | 🐞 bug report Affected Package ngcc Is this a regression? Yes, it works at 9.0.0 Description It actually works in the end. I think it is caused by the order of the ngcc compilation. The problem is l... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | maxisam |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width