Skip to content

[1.3pro] nativeResolver fails to resolve react-native from nested deps under the Expo dev server (pnpm monorepo) #571

@istarkov

Description

@istarkov

What happened?

After updating uniwind pro from 1.2.1 to 1.3.0 expo run:ios is failing with

Unable to resolve module react-native from
  .../node_modules/.pnpm/expo-constants@.../node_modules/expo-constants/build/Constants.js
react-native could not be found within the project or in these directories:
  ../../node_modules/.pnpm/expo-constants@.../node_modules
  ../../node_modules/.pnpm/node_modules

Steps to Reproduce

Use pnpm, use uniwind pro 1.3.0, use expo project.
Execute pnpm expo run:ios
Press i to execute app on ios simulator
See red screen on IOS device.

The issue only affects dev builds.

Here #569 is full details about what's happening

What's exactly broken section

Snack or Repository Link (Optional)

No response

Uniwind version

1.3.0

React Native Version

0.85.0

Platforms

iOS

Expo

Yes

Additional information

Metadata

Metadata

Assignees

No one assigned

    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