Migrating from 2020.1.406 to 2020.2.512 (or higher). Kendo is not added to jQuery anymore

1 Answer 24 Views
General Discussions
Vasiliy
Top achievements
Rank 1
Vasiliy asked on 07 Jul 2021, 05:45 PM | edited on 07 Jul 2021, 10:37 PM

Hey!

I'm trying to update kendo-ui version to the latest. The initialization code stays the same:


import '@progress/kendo-ui/css/web/kendo.common.less'
import '@progress/kendo-ui/css/web/kendo.default.less'

require('@progress/kendo-ui/js/kendo.all');

It works fine until the version 2020.2.512. Starting from this version and higher "window.kendo" object is still available but jQuery does not contain any of kendo* methods (like $(...).kendoNotification)

So...what changed there?...

I'm using webpack to build the application, jQuery is the latest 3.*

~upd

window.kendo.jQuery has everything in place. But window.jQuery does not

1 Answer, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 12 Jul 2021, 07:46 AM

Hello Vasiliy,

Could you please let me know if the error you are receiving is that the kendo widgets are unavailable or undefined? As stated in our Common Issues article in case jQuery is included more than once widgets could be unavailable or undefined. Please find a link to the article below:

- https://docs.telerik.com/kendo-ui/troubleshoot/troubleshooting-common-issues

Could you please double-check if jQuery is loaded a single time in your application?

Looking forward to your reply.

Regards,
Neli
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Vasiliy
Top achievements
Rank 1
commented on 13 Jul 2021, 09:08 PM

Hey Neli,

thank you for the answer. The issue was indeed in 2 jQuery loaded 2 times.
On version 2020.2.512. kendo dependency changed - it requires jQuery of 3.5.1 version exactly. Since in my project version was 3.6.0 then NPM downloaded a separate version of jQuery specifically for kendo. And then webapack bundled it to the output.
Neli
Telerik team
commented on 16 Jul 2021, 08:55 AM

Hi Vasiliy,

Thank you very much for sharing more details about the cause of the observed issue at your end. I am sure it will be helpful to the other users in the Forum.

Regards,

Neli

Tags
General Discussions
Asked by
Vasiliy
Top achievements
Rank 1
Answers by
Neli
Telerik team
Share this question
or