import "@progress/kendo-ui jQuery not found error

0 Answers 39 Views
General Discussions
Daniel
Top achievements
Rank 2
Iron
Iron
Daniel asked on 07 Jul 2023, 03:47 PM

After upgrading vue wrapper components from 2022.2.621 to 2023.2.606 and @progress/kendo-ui from 2022.2.621 to 2023.1.425

and our native component from 3.3.3 to 3.11.0 we are getting an error Uncaught ReferenceError: jQuery is not defined

This literary stops us from working.

Is there any solution that we can try? Thanks!

Petar
Telerik team
commented on 10 Jul 2023, 06:32 AM

Hello, Daniel. 

Thank you for the shared information. To be able to help you resolve the issue we will need additional details about your scenario. Can you please share more context about the following:

  1. Do you use Vite or Vue CLI in your project?
  2. Which Wrapper components do you use in your project?
  3. Do you load jQuery from a CDN or from an NPM package? 
  4. Can you remove the Wrapper components that trigger the issue from a selected page and check if the jQuery library is available?

The reported behavior usually means that jQuery is not available when the Wrapper components are initialized. Of course, the issue could be coming from somewhere else but we will need more details to help you. 

Looking forward to your reply.

Daniel
Top achievements
Rank 2
Iron
Iron
commented on 10 Jul 2023, 07:32 AM | edited

Hello Petar, 

1: We are using Vue Cli 5.0.8

2: We are using the following wrapper components: @progress/kendo-barcodes-vue-wrapper, @progress/kendo-charts-vue-wrapper, @progress/kendo-datasource-vue-wrapper, @progress/kendo-dropdowns-vue-wrapper, @progress/kendo-editor-vue-wrapper, @progress/kendo-upload-vue-wrapper

3: We are loading jquery from NPM package.

4: No page is loading, the problem is present everywhere.

I will investigate your suggestion. Based on my answer I would appreciate any other feedback.

Edit: It seems that whenever I import @progress/kendo-ui or @progress/kendo-ui/js/cultures/kendo.culture.en-US.js or anything related to kendo-ui I get this problem. It doenst matter where I import jquery, AND jquery seems to be installed correctly and working properly.

With console logs without import of kendo-ui I get:

But when I Uncomment: 

Petar
Telerik team
commented on 13 Jul 2023, 07:19 AM

Hi, Daniel. 

We are currently investigating the reported behavior. I will write you back in the next up to 24 hours with an update.

Thank you for your patience and understanding.

Daniel
Top achievements
Rank 2
Iron
Iron
commented on 13 Jul 2023, 08:14 AM

Hello Petar,

thank you!

Petar
Telerik team
commented on 14 Jul 2023, 08:10 AM

Hi, Daniel.

I already shared with you details about the current discussion in a private ticket but I will also write similar information here, just to update the community members. 

The reported issue is already fixed and the fix will be provided with our release planned for the next week. 

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
Daniel
Top achievements
Rank 2
Iron
Iron
Share this question
or