ej2.min.js CDN vs. local

Hi

We use ej2 for ASP.NET core 2.1. When we use the CDN path to the js file in our _Layout.cshtml file, everything works fine, but if we copy the file from the CDN path to our local directory, we get a javascript error (see attachment).

<script src="https://cdn.syncfusion.com/ej2/dist/ej2.min.js"></script> This one works.
<script src="js/ej2.min.js"></script> This one causes error.

This is the control causing the error:
<ejs-textbox cssClass="e-bigger" id="Password" placeholder="Password" floatLabelType="Auto" type="Password"></ejs-textbox>

We have installed ej2 using the nuget package manager and use version 16.3.17.

Many thanks.




Attachment: error_6bbad7d3.zip

1 Reply

KV Karthikeyan Viswanathan Syncfusion Team September 18, 2018 09:57 AM UTC

Hi Daniel, 

Thanks for contacting Syncfusion support. 

Based on your shared details, we suspect that the issue is raised due to the script file is not loaded from wwwroot folder. We have prepared a sample with local script file. 


Regards, 
Karthikeyan V. 


Loader.
Up arrow icon