Next.js Discord

Discord Forum

bfcache / BroadcastChannel error in Lighthouse... can't pin it down

Unanswered
Brown bear posted this in #help-forum
Open in Discord
Brown bearOP
I'm using Next.js 13 (with the pages router) along with MUI for styling and the Supabase js client. Lighthouse testing shows an error that the browser prevent forward/back using bfcache because there's a BroadcastChannel with an active listener. I'm having trouble figuring out exactly where that's coming from or what to do about it.

I looked in all the js files that are available in the Network tab in developer tools, and none of them contain the text "broadcastchannel". I was able to find a reference to it in the Supabase Gotrue library, but I'm not sure if that's the cause or why it doesn't even show up in the js that reaches the browser. I also found it in a couple other places where it wasn't clear what it was related to (seemed like internal Next.js or dependency stuff).

Any ideas? Thanks in advance.

1 Reply

Brown bearOP
Bump