Title: Ng 8.0 + ivy + library Error : does not have 'ngModuleDef' property · Issue #14594 · angular/angular-cli · GitHub
Open Graph Title: Ng 8.0 + ivy + library Error : does not have 'ngModuleDef' property · Issue #14594 · angular/angular-cli
X Title: Ng 8.0 + ivy + library Error : does not have 'ngModuleDef' property · Issue #14594 · angular/angular-cli
Description: 🐞 bug report Is this a regression? no Description this is a simple test ng 8.0 + ivy + library. is it ivy supported custom library ? this is the error message i get : Error: Type MyLibModule does not have 'ngModuleDef' property. if i tur...
Open Graph Description: 🐞 bug report Is this a regression? no Description this is a simple test ng 8.0 + ivy + library. is it ivy supported custom library ? this is the error message i get : Error: Type MyLibModule does n...
X Description: 🐞 bug report Is this a regression? no Description this is a simple test ng 8.0 + ivy + library. is it ivy supported custom library ? this is the error message i get : Error: Type MyLibModule does n...
Opengraph URL: https://github.com/angular/angular-cli/issues/14594
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Ng 8.0 + ivy + library Error : does not have 'ngModuleDef' property","articleBody":"# 🐞 bug report\r\n\r\n\r\n### Is this a regression?\r\nno\r\n\r\n### Description\r\nthis is a simple test ng 8.0 + ivy + library. is it ivy supported custom library ? \r\nthis is the error message i get : \r\nError: Type MyLibModule does not have 'ngModuleDef' property.\r\nif i turn off ivy, all work fine\r\n\r\n\r\n## 🔬 Minimal Reproduction\r\nhttps://github.com/keatkeat87/angular-ivy-library-issue\r\n\r\nstep : \r\nng new library-and-project-issue --enable-ivy\r\ncd library-and-project-issue\r\nng g library my-lib\r\nng build my-lib\r\n\r\n```\r\nimport { BrowserModule } from '@angular/platform-browser';\r\nimport { NgModule } from '@angular/core';\r\nimport { AppRoutingModule } from './app-routing.module';\r\nimport { AppComponent } from './app.component';\r\nimport { MyLibModule } from 'my-lib'; // add\r\n\r\n@NgModule({\r\n declarations: [\r\n AppComponent\r\n ],\r\n imports: [\r\n BrowserModule,\r\n AppRoutingModule,\r\n MyLibModule // add\r\n ],\r\n providers: [],\r\n bootstrap: [AppComponent]\r\n})\r\nexport class AppModule { }\r\n```\r\nng serve --open\r\n\r\n\r\n\r\n**Angular Version:**\r\nAngular CLI: 8.0.0\r\nNode: 12.3.1\r\nOS: win32 x64\r\nAngular:\r\n...\r\n\r\nPackage Version\r\n------------------------------------------------------\r\n@angular-devkit/architect 0.800.0\r\n@angular-devkit/core 8.0.0\r\n@angular-devkit/schematics 8.0.0\r\n@schematics/angular 8.0.0\r\n@schematics/update 0.800.0\r\nrxjs 6.4.0\r\n \r\n","author":{"url":"https://github.com/keatkeat87","@type":"Person","name":"keatkeat87"},"datePublished":"2019-05-30T08:25:20Z","url":"https://github.com/angular/angular-cli/issues/14594"}
| 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:63186139-b3b2-a714-37b8-1e5ae122a56e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A73E:21AC3F:19415D6:1FFEC87:6B012C05 |
| html-safe-nonce | abc3afa59e5f0722a6d089c7817571be90d57d01f3828715076a0cd85b0c14a3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzNFOjIxQUMzRjoxOTQxNUQ2OjFGRkVDODc6NkIwMTJDMDUiLCJ2aXNpdG9yX2lkIjoiMzg3ODAwNTA2NTE3NjM5NDc1OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 87d02f3cdf4f16082ebd1d03268013c8ef2d5c5624ee024b33da9ffbe37c3510 |
| hovercard-subject-tag | issue:450418396 |
| 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-cli/14594/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bfd6e12c58d04eb160a9580f11a774e995982c9c5b02a15771d47c1c8ed33e05/angular/angular-cli/issues/14594 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bfd6e12c58d04eb160a9580f11a774e995982c9c5b02a15771d47c1c8ed33e05/angular/angular-cli/issues/14594 |
| og:image:alt | 🐞 bug report Is this a regression? no Description this is a simple test ng 8.0 + ivy + library. is it ivy supported custom library ? this is the error message i get : Error: Type MyLibModule does n... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | keatkeat87 |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| 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