[Fixed] Property has no initializer and is not definitely assigned in the constructor angular



Property has no initializer and is not definitely assigned in the constructor angular 10/11/12

In angular 10+ to fix this problem you may follow the following steps:

1. Open tsconfig.json file.

2. Find compilerOptions

3. Add     "strictPropertyInitialization"false,

  
        "compilerOptions": {
                ......
            "strictPropertyInitialization"false
            ......
        }




Reactions

Post a Comment

0 Comments