For anyone facing this same error, my situation was that I have double commas in the imports section
imports: [
BrowserModule,
HttpModule,
FormsModule,
RouterModule.forRoot(appRoutes), , // <-- this was the error
// ....
],
More Related Contents:
- Why am I seeing a dropdown like thingy and need to “open” my Angular component in chrome
- How do I share data between components in Angular 2?
- Could not find module “@angular-devkit/build-angular”
- Angular how to get the multiple checkbox values?
- How to add font-awesome to Angular 2 + CLI project
- How to group data in Angular 2?
- How to watch for form changes in Angular
- Ionic 2 Form goes up when keyboard shows
- Angular EXCEPTION: No provider for Http
- *ngIf and local template variables
- ng: command not found while creating new project using angular-cli
- What is the difference between production and development mode in Angular2?
- Angular Reactive Forms with nested Form Arrays
- Set default option in mat-select
- Queries scale with the size of your result set, not the size of your data set
- Resetting a form in Angular 2 after submit
- Angular 2 router resolve with Observable
- Build Angular2 HTML and TypeScript to a single file
- Angular 2 – Does ngOnDestroy get called on refresh or just when navigate away from component?
- How to get param from url in angular 4?
- TypeError: You provided an invalid object where a stream was expected. You can provide an Observable, Promise, Array, or Iterable
- Pass parameter into route guard
- Merging http observables using forkjoin
- tap() isn’t triggered in RXJS Pipe
- How to execute only one test spec with angular-cli
- Angular 4 Material table highlight a row
- How to change angular material datepicker format
- How to make a post request with angular 5
- Does Angular2 use Web Components?
- Angular2 Error: There is no directive with “exportAs” set to “ngForm”