jQuery UI Widgets Forums Angular Angular 8 ES2015(ES6)

This topic contains 4 replies, has 3 voices, and was last updated by  Ivo Zhulev 5 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • Angular 8 ES2015(ES6) #105497

    ajcroteau
    Participant

    Hey,

    Not sure if anyone has reported this however, I ran into an issue when upgrading my project to Angular 8. Once I published my project as a production version, I started getting an error when loading the site in a browser as follows:

    Cannot set property ‘originalVal’ of undefined at jqxcore.js:15

    I noticed that in tsconfig.json, the target compiler has been set to ES2015 (which I read is ES6 but don’t quote me on that). I was able to fix this issue by setting this back to ES5, published again as a production version, and the site was working fine again.

    Just an FYI… I’m guessing Angular 8 is very new and you guys may not have had a chance to do some testing…

    Thanks
    AJ

    • This topic was modified 6 months ago by  ajcroteau.
    • This topic was modified 6 months ago by  ajcroteau.
    Angular 8 ES2015(ES6) #105506

    Todor
    Participant

    Hello AJ,

    Thank you for your feedback! We would need an additional information so we could investigate properly the issue.

    1) What is the jQWidgets version that you’re using?
    2) Could you provide an example code of a widget that you’re using in stackblitz.com?

    Also we always recommend to follow this documentation for using Angular with jQWidgets.

    Best Regards,
    Todor

    jQWidgets Team
    https://www.jqwidgets.com

    Angular 8 ES2015(ES6) #105517

    ajcroteau
    Participant

    Hi,

    Thanks for getting back to me. Unfortunately, I don’t have time to try to reproduce the issue in stackblitz… I did however notice I was running version 7.2.0 and I went ahead and updated to 8.0.0. However, I got the same error when I switched the target to es2015 from es5 in the tsconfig.json file.

    Thanks
    AJ

    Angular 8 ES2015(ES6) #105530

    Todor
    Participant

    Hello AJ,

    Another solution that you could try is to delete node_modules folder and package-lock.json file, and do npm install .
    Also you could use the following command for production build ng build --base-href ./ --prod

    Best Regards,
    Todor

    jQWidgets Team
    https://www.jqwidgets.com

    Angular 8 ES2015(ES6) #105995

    Ivo Zhulev
    Participant

    Hi ajcroteau,

    This is fixed in the latest version of jqwidgets-ng.

    Best Regards,
    Ivo

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

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

You must be logged in to reply to this topic.