You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm looking at building a component library based on Fluent but I'd like to create the library using Web Components and use the fluent React wrappers to expose a React-compatible version i.e. I'd like to single-source the library using WC but provide an easy way for React developers to use it.
I've tried the React wrapper examples provided by Microsoft and some found on blogs, but running them always results in the same error in every browser I've tried (Chrome, Firefox, Safari):
platform.js:80 Uncaught TypeError: Reflect.getPrototypeOf called on non-object
at Reflect.getPrototypeOf ()
at Object.getAccessors (platform.js:80:1)
at getElementKeys (index.js:57:1)
at ReactComponent.render (index.js:169:1)
at finishClassComponent (react-dom.development.js:19752:1)
at updateClassComponent (react-dom.development.js:19698:1)
at beginWork (react-dom.development.js:21611:1)
at HTMLUnknownElement.callCallback (react-dom.development.js:4164:1)
at Object.invokeGuardedCallbackDev (react-dom.development.js:4213:1)
at invokeGuardedCallback (react-dom.development.js:4277:1)
Has anyone ever got these wrappers to actually work? If so, can anyone suggest what I might be doing wrong that is causing this error? FWIW, I'm running the Microsoft examples verbatim.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm looking at building a component library based on Fluent but I'd like to create the library using Web Components and use the fluent React wrappers to expose a React-compatible version i.e. I'd like to single-source the library using WC but provide an easy way for React developers to use it.
I've tried the React wrapper examples provided by Microsoft and some found on blogs, but running them always results in the same error in every browser I've tried (Chrome, Firefox, Safari):
platform.js:80 Uncaught TypeError: Reflect.getPrototypeOf called on non-object
at Reflect.getPrototypeOf ()
at Object.getAccessors (platform.js:80:1)
at getElementKeys (index.js:57:1)
at ReactComponent.render (index.js:169:1)
at finishClassComponent (react-dom.development.js:19752:1)
at updateClassComponent (react-dom.development.js:19698:1)
at beginWork (react-dom.development.js:21611:1)
at HTMLUnknownElement.callCallback (react-dom.development.js:4164:1)
at Object.invokeGuardedCallbackDev (react-dom.development.js:4213:1)
at invokeGuardedCallback (react-dom.development.js:4277:1)
Has anyone ever got these wrappers to actually work? If so, can anyone suggest what I might be doing wrong that is causing this error? FWIW, I'm running the Microsoft examples verbatim.
Beta Was this translation helpful? Give feedback.
All reactions