Skip to content

Unable to resolve "./BaseViewConfig" from "node_modules/react-native/Libraries/NativeComponent/PlatformBaseViewConfig.js" #2788

@Daavidaviid

Description

@Daavidaviid

Is there an existing issue for this?

  • I have searched the existing issues

Describe the issue

Basically I had a RN project using:

  • Expo SDK 53
  • RN 0.79.5
  • RNW 0.20.0

And every thing was working perfectly even on the web!
So I decided to migrate another RN project based on Expo SDK 52 to 53 using my first project as a reference.

Except, I got stuck in the "Unable to resolve …" hell on React Native Web. For a reason I can't understand, the project doesn't resolve files like PlatformBaseViewConfig.js, and I check and it does exist, but only PlatformBaseViewConfig.js.flow.

But same thing in the first project and that's not an issue, so I'm lost.

Expected behavior

It should work or at least have a clear error message

Steps to reproduce

Hard to say, basically, a complex RN Project, that works fine on android and iOS, but on the web throws errors like:

Unable to resolve RNFile from RNPackage

Test case

Sorry I don't have a link but I see a lot of common issue on the web

Additional comments

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions