TypeError: Cannot read property '0' of undefined on basic componant

Hello,

I am getting the following errors when running the basic Schedule Component. Component is on a page that is being navigated to from another. These are the only errors being thrown.

Uncaught Format options or type given must be invalid
Error: Format options or type given must be invalid
    at g (https://localhost:5001/_content/Syncfusion.Blazor/scripts/syncfusion-blazor.min.js:1:17412)
    at Function.t.dateFormat (https://localhost:5001/_content/Syncfusion.Blazor/scripts/syncfusion-blazor.min.js:1:33597)
    at t.getDateFormat (https://localhost:5001/_content/Syncfusion.Blazor/scripts/syncfusion-blazor.min.js:1:49773)
    at t.formatDate (https://localhost:5001/_content/Syncfusion.Blazor/scripts/syncfusion-blazor.min.js:1:50415)
    at t.e.getLabelText (https://localhost:5001/_content/Syncfusion.Blazor/scripts/schedule-580d73.min.js:1:465257)
    at e.updateLabelText (https://localhost:5001/_content/Syncfusion.Blazor/scripts/schedule-580d73.min.js:1:295847)
    at e.initializeLayout (https://localhost:5001/_content/Syncfusion.Blazor/scripts/schedule-580d73.min.js:1:294233)
    at e.render (https://localhost:5001/_content/Syncfusion.Blazor/scripts/schedule-580d73.min.js:1:292528)
    at i.initializeView (https://localhost:5001/_content/Syncfusion.Blazor/scripts/schedule-580d73.min.js:1:365460)
    at i.renderElements (https://localhost:5001/_content/Syncfusion.Blazor/scripts/schedule-580d73.min.js:1:359919)
syncfusion-blazor.min.js:1 Cannot read property '0' of undefined

TypeError: Cannot read property '0' of undefined
    at t.e.startDate (https://localhost:5001/_content/Syncfusion.Blazor/scripts/schedule-580d73.min.js:1:462476)
    at e.refreshDataManager (https://localhost:5001/_content/Syncfusion.Blazor/scripts/schedule-580d73.min.js:1:296039)
    at i.layoutReady (https://localhost:5001/_content/Syncfusion.Blazor/scripts/schedule-580d73.min.js:1:355008)
    at https://localhost:5001/_content/Syncfusion.Blazor/scripts/syncfusion-blazor.min.js:1:185158
    at l (https://localhost:5001/_content/Syncfusion.Blazor/scripts/syncfusion-blazor.min.js:1:9474)
    at Generator._invoke (https://localhost:5001/_content/Syncfusion.Blazor/scripts/syncfusion-blazor.min.js:1:9227)
    at Generator.forEach.e.<computed> [as next] (https://localhost:5001/_content/Syncfusion.Blazor/scripts/syncfusion-blazor.min.js:1:9831)
    at r (https://localhost:5001/_content/Syncfusion.Blazor/scripts/syncfusion-blazor.min.js:1:4486)
    at s (https://localhost:5001/_content/Syncfusion.Blazor/scripts/syncfusion-blazor.min.js:1:4697)
    at https://localhost:5001/_content/Syncfusion.Blazor/scripts/syncfusion-blazor.min.js:1:4756




This is all that is in my razor file.

@using Syncfusion.Blazor.Schedule

<SfSchedule TValue=object></SfSchedule>


I am running this on Mac. 
Visual Studio For Mac Version (Community) = 8.6.6 (Build 11)
Syncfusion.Licensing Nuget Version = 18.2.0.45
Syncfusion.Blazor Nuget Version = 18.2.0.45
Error on browsers: Chrome, Brave, Safari 



1 Reply 1 reply marked as answer

HB Hareesh Balasubramanian Syncfusion Team July 21, 2020 02:56 PM UTC

Hi Mathew, 

Greetings from Syncfusion Support..! 

We have validated your shared query “I followed this demo to the T (https://blazor.syncfusion.com/documentation/scheduler/getting-started/).” at our end. And for the same, we have prepared a Scheduler sample by following the getting started link and it is working properly at our end with the current 18.2.0.45 version without any script error and the sample can be downloaded from the following link. 

Code snippet: 
@page "/" 
@using Syncfusion.Blazor.Schedule 
 
<SfSchedule TValue=object></SfSchedule> 


And for further reference, kindly refer the below output image, 
 

Kindly try the above sample and get back to us if you need any further assistance. 

Regards, 
Hareesh 


Marked as answer
Loader.
Up arrow icon