jQWidgets Forums

jQuery UI Widgets Forums Angular Variable 'areEqual' is used before being assigned

This topic contains 1 reply, has 2 voices, and was last updated by  Ivo Zhulev 7 years, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • claesb
    Participant

    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!


    Ivo Zhulev
    Participant

    Hi claesb,

    Thanks for the report!

    Best Regards,
    Ivo

    jQWidgets Team
    http://www.jqwidgets.com/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.