I had this error even though I had everything that the answers above suggested in place. A simple edit in the app.module.ts
file ( like delete a bracket and put it back) did the trick.
More Related Contents:
- Uncaught Error: Unexpected directive ‘MyComboBox’ imported by the module ‘AppModule’. Please add a @NgModule annotation
- Avoiding relative paths in Angular CLI
- How do I share data between components in Angular 2?
- Error when trying to inject a service into an angular component “EXCEPTION: Can’t resolve all parameters for component”, why?
- How to add font-awesome to Angular 2 + CLI project
- No ‘Access-Control-Allow-Origin’ header in Angular 2 app
- Ionic 2 Form goes up when keyboard shows
- When to use square brackets [ ] in directives @Inputs and when not?
- Angular2 – Interaction between components using a service
- Reactive forms – disabled attribute
- Build Angular2 HTML and TypeScript to a single file
- angular keyvalue pipe sort properties / iterate in order
- Angular subscribe elegant
- How to allow access outside localhost
- Angular – Make multiple HTTP calls sequentially
- @types/googlemaps/index.d.ts’ is not a module
- Update to Angular v6 – Module not found: Error: Can’t resolve ‘fs’
- Angular 4+ using Google Analytics
- Typescript dependency injection public vs private
- Rxjs Retry with Delay function
- What is the meaning of question mark in expressions in Angular 2?
- Merging http observables using forkjoin
- Angular: selected on option of select doesn’t work as excepted while using along with ngModel
- TypeScript-‘s Angular Framework Error – “There is no directive with exportAs set to ngForm”
- How to return observable from subscribe
- Angular 2 creating reactive forms with nested components
- Limit input field to two decimal places – Angular 5
- Angular 6 – how to mock router.events url response in unit test
- How to create and download text/Json File with dynamic content using angular 2+
- Angular4 Load external html page in a div