Skip to content

[15.1.1] React native export entry point #1038

@lovegaoshi

Description

@lovegaoshi

Question

Hi!

I recently upgraded my react native project to use esm import only and started to see super expression must either be null or a function. Then I noticed ytbi used to be imported via the bundled src ./bundle/react-native.js, however its done that way, to now via ./dist/src/platform/react-native.js. Replacing "react-native": "./dist/src/platform/react-native.js", to "react-native": "./bundle/react-native.js", fixes it. I wonder what's the decision on all entry points being at ./dist/src instead of ./bundle?

Other details

No response

Checklist

  • I am running the latest version.
  • I checked the documentation and found no answer.
  • I have searched the existing issues and made sure this is not a duplicate.
  • I have provided sufficient information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions