Skip to content

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

@daledesilva

Description

@daledesilva

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions