TypeScript show following error message to this code samples:
class MyClass { someField: boolean; constructor() { return { someField: true }; } }
"angularCompilerOptions": { // ... "strictPropertyInitialization": false // ... }
According to angular latest version, it supports strict typing, so you have to disbale it.
Make modifications and restart server