2023.1 Non-min js files "Uncaught SyntaxError: Cannot use import statement outside a module"

0 Answers 656 Views
General Discussions
Shane
Top achievements
Rank 1
Shane asked on 06 Feb 2023, 07:25 PM
Please advise on how to load the non-minimized versions of the javascript files so I can debug my application. Thanks 
Georgi
Telerik team
commented on 09 Feb 2023, 09:34 AM

We ship our scripts as both ES6 and UMD modules. I suspect you are using the ES6 modules version. When you load an ES6 module, you have to set the type attribute of the script tag to "module".

e.g.

<script type="module" src="scripts/kendo.filter.js"></script>

I hope this helps.

 
Shane
Top achievements
Rank 1
commented on 13 Feb 2023, 12:25 PM

It did. Thank you! 

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
Shane
Top achievements
Rank 1
Share this question
or