Cannot read property '0' of undefined
Locally everything runs normally, but after deployment i'm getting "Cannot read property '0' of undefined"error.

Grid shows: No records to display.
SIGN IN To post a reply.
4 Replies
RS
Renjith Singh Rajendran
Syncfusion Team
March 18, 2020 01:24 PM UTC
Hi Aleksandrs,
Thanks for contacting Syncfusion support.
The script error might have occurred when trying to call a method in our blazor source. This issue might occur when instance of Syncfusion components is not obtained properly in the client side. So kindly share the following details which will be helpful for us to validate the reported issue at our end.
- Share a simple issue reproducing sample so that we could validate further with the provided sample based on your scenario.
- Did you see any other exception details thrown in the browser developer tool? If so please share the exception details.
- Are you facing the reported issue while navigating from one page to another with Syncfusion components or during initial rendering itself.
- Share the issue replication procedure along with video demonstrations.
- Share the complete Grid code example.
- Share your Razor page along with the details about the Components in that razor page.
And also we suggest you to ensure to use same version 17.4.0.55 Syncfusion Nuget and scripts in your application.
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,
Renjith Singh Rajendran.
NH
Nguyen Huu
April 15, 2021 10:29 AM UTC
Hi Renjith Singh Rajendran
We met a issue with the same:
syncfusion-blazor-extended-2c4f32.min.js:1 Cannot read property '0' of undefined
TypeError: Cannot read property '0' of undefined
at Object.methodCall (https://localhost:44335/_content/Syncfusion.Blazor.Core/scripts/syncfusion-blazor-extended-2c4f32.min.js:1:22929)
at https://localhost:44335/_framework/blazor.server.js:1:70043
at new Promise (<anonymous>)
at e.beginInvokeJSFromDotNet (https://localhost:44335/_framework/blazor.server.js:1:70009)
at https://localhost:44335/_framework/blazor.server.js:1:26293
at Array.forEach (<anonymous>)
at e.invokeClientMethod (https://localhost:44335/_framework/blazor.server.js:1:26263)
at e.processIncomingData (https://localhost:44335/_framework/blazor.server.js:1:24201)
at e.connection.onreceive (https://localhost:44335/_framework/blazor.server.js:1:17286)
at WebSocket.i.onmessage (https://localhost:44335/_framework/blazor.server.js:1:46503)
NH
Nguyen Huu
April 16, 2021 03:47 AM UTC
This because when loading SfPdfViewer
DM
Dhivyabharathi Mohan
Syncfusion Team
April 16, 2021 02:53 PM UTC
Hi Nguyen,
We were unable to replicate the reported issue. We have shared the sample in which we tried to replicate the reported issue.
Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/blazor_application-204789035
Kindly try this and revert by modify the sample which we have shared to replicate the reported issue. It will be helpful for us to investigate further and provide details.
Regards,
Dhivya.
SIGN IN To post a reply.
- 4 Replies
- 4 Participants
-
AL Aleksandrs
- Mar 17, 2020 01:57 PM UTC
- Apr 16, 2021 02:53 PM UTC