react-native-web-community / react-native-web-webview

React Native for Web implementation of RN's WebView
https://react-native-web-community.github.io/react-native-web-webview/storybook
MIT License
133 stars 48 forks source link

react-native-web alias breaks expo export:web #77

Open daledesilva opened 1 year ago

daledesilva commented 1 year ago

While using expo, I've found that I can't run npx expo export:web in order to create my web build. In doing so I receive an error.

Failed to compile
ModuleNotFoundError: Module not found: Error: Can't resolve 'react-native/Libraries/Image/AssetRegistry' in 

Note that npx expo start still works to develop. And if I remove the alias (ie. 'react-native': 'react-native-web', from webpack.config.js) it works fine.

Is that alias really necessary? Or is this a difference in setup needs for expo vs create-react-app?