Open giovanijfc opened 3 weeks ago
facing the same issue as above, metro requires a main file to be specified or an index.js to be present in any node module packages. adding "main": "./bundle/react-native.js",
to the package.json allows for successful import and usage of the library, however I'm not sure if this is too hacky or will leave things out that are necessary for other functionality that I haven't tested yet
Please make sure you both fully follow the react-native instructions: https://github.com/LuanRT/YouTube.js/blob/main/src/platform/react-native.md
Please make sure you both fully follow the react-native instructions: https://github.com/LuanRT/YouTube.js/blob/main/src/platform/react-native.md
yes I made sure to follow that but even with adding those configs it didn't change anything metro still isn't able to find the main file without adding that line to the package.json. The error might have something to do with myself and the original poster using expo since I know you can also use React native cli as well.
Steps to reproduce
Hi, I installed the lib in version 10.0.0 and in my app made in react-native 0.72.6 + expo 49.0.15 and the bundle is breaking.
Failure Logs
Expected behavior
The app loaded the bundle without a problem
Current behavior
The bundle crashes while I keep importing the module
Version
Default
Anything else?
No response
Checklist