JS error "Cannot read property '0' of undefined
TypeError: Cannot read property '0' of undefined
at Object.invokeMethod (https://cdn.syncfusion.com/ej2/17.4.49/dist/ejs.interop.min.js:1:9811)
SIGN IN To post a reply.
3 Replies
SI
Simon
February 12, 2020 12:24 PM UTC
I have this error everytime when I add components by razor and getting removed like page switch.
I really have no idea, but everything still works. Just spamming the console with errors.
Complex component by me, and only one component from syncfusion, the EjsButton.
I rebuilded the whole Menu, Tabs in native Blazor with Syncfusion CSS and reused the EjsButton for ripple effect. Just because those from Syncfusion doesn't work with ICollections like ObservableCollection or complex types and are too heavy on network usage, plain Blazor component with Syncfusions CSS are much lighter.
VN
Vignesh Natarajan
Syncfusion Team
February 17, 2020 03:08 AM UTC
Hi Mr Andrey,
Thanks for contacting Syncfusion support.
Query: “TypeError: Cannot read property '0' of undefined”
From the script error, we suspect that reported issue has occurred when trying to call a method in our source. This issue might occur when instance of Syncfusion components is not initiated properly in client side. So kindly share the following details which will be helpful for us to validate the reported issue at our end.
- Are you facing the reported issue while navigating from one page to another with Syncfusion components or during initial rendering itself.
- Share the stack trace of the script error thrown.
- Share the Grid code example.
- Share your Razor page along with the details about the Components in that razor page.
Requested details will be helpful for us to validate the reported issue at our end and provide the better solution as soon as possible.
Regards,
Vignesh Natarajan.
VN
Vignesh Natarajan
Syncfusion Team
February 17, 2020 12:56 PM UTC
Hi Simon,
Thank you for contacting Syncfusion support.
We have checked your reported issue and we are unable to reproduced it in our end. For your convenience we have created the sample for your reference. If the issue still persist in your end could you please replicate your issue in the below sample and send back to us, so that we can analyze and provide you a better solution.
Sample link:
Regards,
Vignesh Natarajan.
SIGN IN To post a reply.
- 3 Replies
- 3 Participants
-
MA Mr Andrey Voronov
- Feb 12, 2020 10:20 AM UTC
- Feb 17, 2020 12:56 PM UTC