Title: Ivy error TS-996002, when using compiled esm5 files · Issue #32442 · angular/angular · GitHub
Open Graph Title: Ivy error TS-996002, when using compiled esm5 files · Issue #32442 · angular/angular
X Title: Ivy error TS-996002, when using compiled esm5 files · Issue #32442 · angular/angular
Description: 🐞 bug report Affected Package The issue is caused by package @angular/cli Is this a regression? It only happens when Ivy is enabled - ngcc. With stable ngc AOT build it works fine. Description The error occurs when running the ng build c...
Open Graph Description: 🐞 bug report Affected Package The issue is caused by package @angular/cli Is this a regression? It only happens when Ivy is enabled - ngcc. With stable ngc AOT build it works fine. Description The ...
X Description: 🐞 bug report Affected Package The issue is caused by package @angular/cli Is this a regression? It only happens when Ivy is enabled - ngcc. With stable ngc AOT build it works fine. Description The ...
Opengraph URL: https://github.com/angular/angular/issues/32442
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Ivy error TS-996002, when using compiled esm5 files","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\u003c!-- Can you pin-point one or more @angular/* packages as the source of the bug? -->\r\nThe issue is caused by package @angular/cli\r\n\r\n\r\n### Is this a regression?\r\n\r\n\u003c!-- Did this behavior use to work in the previous version? -->\r\nIt only happens when Ivy is enabled - ngcc. With stable ngc AOT build it works fine.\r\n\r\n\r\n### Description\r\n\r\nThe error occurs when running the `ng build` command, if the source code imports a module and component from a compiled esm5 file, which has the associated `d.ts` and `metadata.json` files.\r\n\r\n\r\n## 🔬 Minimal Reproduction\r\n\r\nCan be found here: https://github.com/acidb/mobiscroll-ivy-test\r\nRunning `ng build` throws the mentioned error.\r\n\r\n## 🔥 Exception or Error\r\n\u003cpre>\u003ccode>\r\nERROR in src/mobiscroll/src/js/input.angular.d.ts:3:22 - error TS-996002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class\r\n\r\n3 export declare class MbscInputModule {\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-next.0\r\nNode: 12.4.0\r\nOS: win32 x64\r\nAngular: 9.0.0-next.3\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... language-service, platform-browser, platform-browser-dynamic\r\n... router\r\n\r\nPackage Version\r\n-----------------------------------------------------------\r\n@angular-devkit/architect 0.900.0-next.0\r\n@angular-devkit/build-angular 0.900.0-next.0\r\n@angular-devkit/build-optimizer 0.900.0-next.0\r\n@angular-devkit/build-webpack 0.900.0-next.0\r\n@angular-devkit/core 9.0.0-next.0\r\n@angular-devkit/schematics 9.0.0-next.0\r\n@angular/cli 9.0.0-next.0\r\n@ngtools/webpack 9.0.0-next.0\r\n@schematics/angular 9.0.0-next.0\r\n@schematics/update 0.900.0-next.0\r\nrxjs 6.5.2\r\ntypescript 3.5.3\r\nwebpack 4.39.2\r\n\r\n\u003c/code>\u003c/pre>\r\n\r\n**Anything else relevant?**\r\n\r\nFound [this issue](https://github.com/angular/angular/issues/30972) with the same error message, which is closed and fixed, but I'm not sure if it's the same cause.","author":{"url":"https://github.com/dioslaska","@type":"Person","name":"dioslaska"},"datePublished":"2019-09-02T08:39:08Z","url":"https://github.com/angular/angular/issues/32442"}
| 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:e786aa0b-d2c9-c5d4-3363-cff305703826 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CB88:19AA62:F43570:137495D:6B010DDF |
| html-safe-nonce | 19a74804ad8d8a4a1d7f7c8989874c6327794c0d05fa7dc4871ab65f5136e05e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjg4OjE5QUE2MjpGNDM1NzA6MTM3NDk1RDo2QjAxMERERiIsInZpc2l0b3JfaWQiOiI4MTg5MzE4MDQ4OTI3MjU2MDMxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a237934b22d7ad552d8944ff7905f55827eac2b96a8eb8c25c0ebae6d96f8f15 |
| hovercard-subject-tag | issue:488069855 |
| 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/32442/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1c5d45eb7f569ed467a0111f0eedf5f440d4ede0e4c3784a2e8dfa7cdf32c6c4/angular/angular/issues/32442 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1c5d45eb7f569ed467a0111f0eedf5f440d4ede0e4c3784a2e8dfa7cdf32c6c4/angular/angular/issues/32442 |
| og:image:alt | 🐞 bug report Affected Package The issue is caused by package @angular/cli Is this a regression? It only happens when Ivy is enabled - ngcc. With stable ngc AOT build it works fine. Description The ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dioslaska |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| 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 | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width