I\'m having the following TypeScript class
export class Vehicule extends TrackableEntity {
vehiculeId: number;
constructor() {
super();
return s
You're probably running into this Angular issue: https://github.com/angular/angular-cli/issues/15077.
From that issue:
Hi, is there a reason why you need emitDecoratorMetadata to be true?
This TypeScript option has a fundamental design limitation with ES2015+ code and is best avoided when targeting such output. As such this is an issue with TypeScript itself and not Angular.
Angular 8+ no longer requires the option. It was also previously only required for JIT mode which is typically only used in development.
The solution is to set "emitDecoratorMetadata": false
in your tsconfig.json file.
Side note:
I must say, given that previous versions of the Angular CLI automatically added emitDecoratorMetadata: true
, and there's no reason I can see why a dev should know that emitDecoratorMetadata
should now be false
, it's pretty horrible that the Angular team basically said "this isn't our problem" and closed the issue without action. This could have been easily "fixed" by adding some better documentation (as pointed out by someone in the linked issue).