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
The problem is I try to build a fresh ejected project using react-native-web. Somehow, all the imports on native platforms still import react-native-web instead of react-native. I have tried everything and at this point it seems like some kind of voodoo magic to me, because sometimes the imports work properly and sometimes not. Everything works fine on the browser side though.
Expected behavior
Should import react-native on ios/android and react-native-web on web.
The alias for react-native-web is in my webpack.config.js and I even tried deleting the web folder completely but the issue still persists on the native devices.
Test case
N/A
Additional comments
Thanks for looking into it in advance!
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Describe the issue
The problem is I try to build a fresh ejected project using react-native-web. Somehow, all the imports on native platforms still import react-native-web instead of react-native. I have tried everything and at this point it seems like some kind of voodoo magic to me, because sometimes the imports work properly and sometimes not. Everything works fine on the browser side though.
Expected behavior
Should import react-native on ios/android and react-native-web on web.
Steps to reproduce
babel.config.js:
package.json:
The alias for react-native-web is in my webpack.config.js and I even tried deleting the web folder completely but the issue still persists on the native devices.
Test case
N/A
Additional comments
Thanks for looking into it in advance!
The text was updated successfully, but these errors were encountered: