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.



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.   

  1. Share a simple issue reproducing sample so that we could validate further with the provided sample based on your scenario.
  2. Did you see any other exception details thrown in the browser developer tool? If so please share the exception details.
  3. Are you facing the reported issue while navigating from one page to another with Syncfusion components or during initial rendering itself.
  4. Share the issue replication procedure along with video demonstrations.
  5. Share the complete Grid code example.
  6. 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.  
  
  
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. 


Loader.
Up arrow icon