react-native-web-webview icon indicating copy to clipboard operation
react-native-web-webview copied to clipboard

react-native-web alias breaks expo export:web

Open daledesilva opened this issue 1 year ago • 0 comments

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?

daledesilva avatar Jul 18 '23 05:07 daledesilva