Property '...' has no initializer and is not definitely assigned in the constructor
@lebyy▲ 0 net votes
Problem: in my Angular app I have a component: import { MakeService } from './../../services/make.service'; import { Component, OnInit } from '@angular/core'; @Compone but in the "makes" property I have a mistake. I don't know what to do with it. Fix (from the top answer): Just go to tsconfig.json and set "compilerOptions": { "strictPropertyInitialization": false, ... } to get rid of the compilation error. Otherwise you need to initialize all your variables which is a little bit annoying