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
with react-native-web. I am not sure yet what exactly is going on and how to fix it. Looks like I need to tell babel / webpack to alias the "react-native" package to "react-native-web" inside node_modules/styled-components / node_modules/@emotion/native.
I will look into it ASAP, if anyone has another idea, I'd greatly appreciate it. Would be also cool to have this extended in the with-react-native-web example
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
-
This combination of packages is very shaky. Both
emotion
andstyled-components
run intoError: Cannot find module 'react-native'
with
react-native-web
. I am not sure yet what exactly is going on and how to fix it. Looks like I need to tell babel / webpack to alias the "react-native" package to "react-native-web" insidenode_modules/styled-components
/node_modules/@emotion/native
.I will look into it ASAP, if anyone has another idea, I'd greatly appreciate it. Would be also cool to have this extended in the
with-react-native-web
exampleOther places talking about it:
styled.Component
notation styled-components/styled-components#2624 (partly related)Beta Was this translation helpful? Give feedback.
All reactions