KendoUpload is not a function

1 Answer 47 Views
Upload
Rasmus
Top achievements
Rank 1
Iron
Rasmus asked on 23 Jan 2024, 09:31 AM
I've been trying to update from an older version 2019.3.1114 to a newer version, but from 2020.1.114, which is the next on the list that's not internal https://www.npmjs.com/package/@progress/kendo-ui?activeTab=versions, an onwards, I get the same error

kendoUpload is not a function.
RIght now I'm just trying to upgrade to the newest version but regardless I still get the same error. It sets some other kendo stuff on
$('files') as you can see from the screenshot, (kendoAddClass, kendoAnimate etc.) but not kendoUpload





On 
https://docs.telerik.com/kendo-ui/controls/upload/get-started
It says I should make the "files" input which I have
and it says I should call kendoUpload on files which I'm trying to but it doesn't exist
I thought it was a timing issue so I put it into a setTimeout, but it's still not there

Looking at 
https://docs.telerik.com/kendo-ui/backwards-compatibility/2020-backward-compatibility
There's nothing that suggests that kendoUpload should break or act different from 2019 to 2020 versions as far as I can see.


Is there something else I'm missing? Do I need to activate it somehow? I'm loading both kendo.all.js and kendo.upload.js, I tried with just all.js first.

1 Answer, 1 is accepted

Sort by
0
Accepted
Rasmus
Top achievements
Rank 1
Iron
answered on 25 Jan 2024, 11:46 AM
This was an issue with webpack, and html loader. 
A few files were introduced that was called kendo.html-something.js
And my html loader was set to look for /\.html/, not /\.html$/,
So the kendo.html-something.js files were not loading which resultet in a javascript error in kendo.icons.js which means that kendo.upload.js was never loaded.
Nikolay
Telerik team
commented on 26 Jan 2024, 07:47 AM | edited

Hi Rasmus,

Thank you for updating us on the case. I am glad to hear you managed to resolve the situation and I believe this will help others facing the same scenario.

Regards,

Nikolay

Tags
Upload
Asked by
Rasmus
Top achievements
Rank 1
Iron
Answers by
Rasmus
Top achievements
Rank 1
Iron
Share this question
or