mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-23 07:19:58 +08:00
Using cli `6.2.0-beta.2` with the new `experimentalIvy` flag leads to: ERROR in src/app/app.module.ts(1,1): error TS6133: 'BrowserModule' is declared but its value is never read.
19 lines
539 B
TypeScript
19 lines
539 B
TypeScript
<% if (!experimentalIvy) { %>import { BrowserModule } from '@angular/platform-browser';<% } %>
|
|
import { NgModule } from '@angular/core';
|
|
<% if (routing && !experimentalIvy) { %>
|
|
import { AppRoutingModule } from './app-routing.module';<% } %>
|
|
import { AppComponent } from './app.component';
|
|
|
|
@NgModule({
|
|
declarations: [
|
|
AppComponent
|
|
],
|
|
imports: [<% if (!experimentalIvy) { %>
|
|
BrowserModule<% if (routing) { %>,
|
|
AppRoutingModule<% } %>
|
|
<% } %>],
|
|
providers: [],
|
|
bootstrap: [AppComponent]
|
|
})
|
|
export class AppModule { }
|