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
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
-
I have a react 18 based component that has a createRoot import like
later on this code is called as
This component is later used inside the preact based app
webpack config has aliases
The problem is that after bundling with webpack, createRoot is an empty function and it fails
Any solutions how to fix that?
I've tried to alias "react-dom/client" as "preact/compat" but it does not help
Beta Was this translation helpful? Give feedback.
All reactions