Hi!
I have been setting up an Angular project using the .NET SpaServices templates and encountered a couple of errors trying to add jqWidgets to this projects. I managed to solves most of the issues with help from the forum, but one still remains.
In all the components I have tested there is an error in the ngOnChanges()-method, namely the line were areEqual is declared, as such:
let areEqual: boolean;
It is then used before being assigned leading to the following error
ERROR in [at-loader] ./node_modules/jqwidgets-framework/jqwidgets-ts/angular_jqxgrid.ts:182:23
TS2454: Variable 'areEqual' is used before being assigned.
If I change the above declaration to let areEqual: boolean = false;
or otherwise assign it, the problem is of course solved. But I do not wish to do this everytime run npm install on a new machine or update my libs.
I assume I can also get around the problem by somehow disabling strictNullChecks in Typescript, but I’m not really sure I want to try that either.
Maybe there is a better workaround, or possible this could be fixed in an upcoming version?
Anyway, thanks for a great lib!