It turned out that you need to remove this line from “include”
"src/**/*.ts"
from tsconfig.app.json
and only keep entry points in files (main.ts and polyfills.ts)
More Related Contents:
- Dynamically load HTML template in angular2
- @types/googlemaps/index.d.ts’ is not a module
- Avoiding relative paths in Angular CLI
- How to generate components in a specific folder with Angular CLI?
- Dynamically add event listener
- I get “Http failure response for (unknown url): 0 Unknown Error” instead of actual error message in Angular
- Angular error: “Can’t bind to ‘ngModel’ since it isn’t a known property of ‘input'”
- How to write unit testing for Angular / TypeScript for private methods with Jasmine
- Angular and Typescript: Can’t find names – Error: cannot find name
- Angular 2 Scroll to top on Route Change
- how to format date in Component of angular 5
- Angular 2 – How do I navigate to another route using this.router.parent.navigate(‘/about’)?
- Getting “Uncaught (in promise): TypeError: Object(…) is not a function” Error from Ionic-native VideoEditor Plugin
- Typescript/Angular/ES6: can I finally let `hasOwnProperty()` die in for loops?
- async/await in Angular `ngOnInit`
- How to inject service into class (not component)
- Angular2 router keep query string
- Angular 2 ‘component’ is not a known element
- How to make a sequence of http requests in Angular 6 using RxJS
- Getting Image from API in Angular 4/5+?
- Angular 2 Dynamically insert a component into a specific DOM node without using ViewContainerRef
- Angular 4 HttpClient Query Parameters
- Function DocumentReference.set() called with invalid data. Unsupported field value: a custom Budget object
- Can’t bind to ‘formControl’ since it isn’t a known property of ‘input’ – Angular2 Material Autocomplete issue
- When to use ‘npm start’ and when to use ‘ng serve’?
- Implementing a plugin architecture / plugin system / pluggable framework in Angular 2, 4, 5, 6
- What is pipe for in RxJS?
- How to throw error from RxJS map operator (angular)
- Angular 2 disable sanitize
- Can I use Angular i18n to translate string literals in typescript code