I have just created this small Angular 4 module:
import { BrowserModule } from "@angular/platform-browser";
import { NgModule } from "@angular/core";
import { FormsModule } from "@angular/forms";
import { HttpModule } from "@angular/http";
import { FooterComponent } from "./footer.component";
@NgModule({
declarations: [
FooterComponent
],
imports: [
BrowserModule,
FormsModule,
HttpModule
],
providers: [],
bootstrap: [FooterComponent]
})
export class FooterModule { }
After attempting an angular build
, I encountered the following error:
ERROR in C:/Projects/Angular 4/Angular4/src/footer.module.ts (7,1): 'from' expected.
Line 7 appears to be correct with
import { FooterComponent } from "./footer.component";
, and it includes the necessary from
. If there is an issue with the from
component, I would expect a runtime error instead.