Forum Discussion
avinash1239
Feb 07, 2020Copper Contributor
SPFX WebPart consuming Graph api to display events is not working in IE11
I have created SPFX Webpart which displays calendar events using Graph API. It is working in Chrome but not in IE11 Im getting error (in the attachment) in IE11 when trying to display upcoming e...
Feb 07, 2020
avinash1239 a null or undefined check at the specific error line should resolve the error. The browsers must be behaving differently with a specific object that you have.
Alternatively, if this related to a browser feature, check if you need to include a polyfill to make it compatible with IE.
- avinash1239Feb 09, 2020Copper Contributor
Joel Rodrigues I have done that , I am getting the same error.
- Feb 09, 2020
avinash1239 can you share the error details, not just the message, and also the line of code where that is happening (if it doesn't contain anything confidential)?
- avinash1239Feb 11, 2020Copper Contributor
var currentDate = 'end/Datetime ge 2020-02-11T00:00:00.000'
msgraphclient.api('/me/calendar/events').version("v1.0").filter(currentDate).orderby("start/dateTime").top(3).get( (error:any,eventsResponse:any,rawResponse?:any)=>{const calendarEvents:MicrosoftGraph.Event[]=eventsResponse.value;console.log(calendarEvents);});If I remove the filter condition ,its working fine