-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Copy link
Labels
Milestone
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 turn off ivy, all work fine
🔬 Minimal Reproduction
https://github.com/keatkeat87/angular-ivy-library-issue
step :
ng new library-and-project-issue --enable-ivy
cd library-and-project-issue
ng g library my-lib
ng build my-lib
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { MyLibModule } from 'my-lib'; // add
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
AppRoutingModule,
MyLibModule // add
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
ng serve --open
Angular Version:
Angular CLI: 8.0.0
Node: 12.3.1
OS: win32 x64
Angular:
...
Package Version
@angular-devkit/architect 0.800.0
@angular-devkit/core 8.0.0
@angular-devkit/schematics 8.0.0
@schematics/angular 8.0.0
@schematics/update 0.800.0
rxjs 6.4.0
magnattic, DaSchTour and vultix