daily-co / daily-js

https://docs.daily.co/reference/daily-js
BSD 2-Clause "Simplified" License
103 stars 33 forks source link

TypeError: Cannot read properties of null (reading 'postMessage') #257

Open yrachidi1 opened 1 month ago

yrachidi1 commented 1 month ago

Using Daily prebuilt 0.71.2, React 18.2.0,

Only sometimes this error occurs:

Cannot read properties of null (reading 'postMessage')

const instance = DailyIframe.createFrame(node);

node is a React.ref which is well defined.

Refreshing the page solves it. So it seems quite random. This is the client-side exception.

Tested on Chrome and Firefox, same issue

Edit : it seems that using version 0.66.0 works but no longer from 0.67.0

milo- commented 1 month ago

We've also been seeing this in our Sentry logs