I have just "written" (copied structure not content) this little 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 { }
When I try an angular build, I get the following error:
ERROR in C:/Projects/Angular 4/Angular4/src/footer.module.ts (7,1): 'from' expected.
To me, line 7, import { FooterComponent } from "./footer.component";, looks syntactically correct, and even has a from. If the from component is bad, I'd rather expect a runtime error.