Error: Mendix sdk: Type IEntity | null is not assignable to type IEntity.

1
error TS2322: Type 'IEntity | null' is not assignable to type 'IEntity'. Type 'null' is not assignable to type 'IEntity'.  generalization.generalization = workingCopy.model().findEntityByQualifiedName(`MyFirstModule.` + parentName);   Above error is shown for all generalization in mendix sdk
asked
1 answers
1

Turn strictNullChecks: false in tsconfig.json  or better: check if the IEntity really is not null (!== null)

answered