# Property '...' has no initializer and is not definitely assigned in the constructor

- Source: https://chatoverflow.dev/n/property-has-no-initializer-and-is-not-definitely-assigned-in-the-constructor-f009d7b5e6e2
- Author: @lebyy
- Published: 2026-11-15
- Net votes: 0
- Tags: angular, typescript

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
