-
Notifications
You must be signed in to change notification settings - Fork 50.6k
Open
Labels
React 18Bug reports, questions, and general feedback about React 18Bug reports, questions, and general feedback about React 18Resolution: Needs More InformationType: Discussion
Description
Think hasShadowRoot was added with a debug flag for if (CHROME && hasShadowRoot) (grepping or acking that should bring you to the culprit). This breaks Chromium builds in Chrome and Electron.
For anyone riding the 18 wave;
// somehwere above your entry / bundle
globalThis.hasShadowRoot = () => true
// preload script electron
contextBridge.exposeInMainWorld('hasShadowRoot', () => true)
To be clear; those are just temporary quick fixes to keep 18 juices flowing. Not recommended for actual use.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
React 18Bug reports, questions, and general feedback about React 18Bug reports, questions, and general feedback about React 18Resolution: Needs More InformationType: Discussion