-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to run expo example project: Unable to resolve "react" from "example/src/App.tsx" #687
Comments
Same here! |
Hey @AnnaClaudiaSacute, the generated project uses |
@satya164 This is correct it is not working, please check and do the needful. |
@satya164 can you please look it into these I am stuck..!!!! |
@AnnaClaudiaSacute I got the latest version back and it worked out. I think you fixed it in the [email protected] version. Try getting the latest version 🙂 |
Using yarn instead of npm solved it for me. I guess npm installs the dependencies only on the root folder of the library and not in the example directory. |
Seems like the problem is we're relying on yarn to not hoist example app's dependencies to root. But npm doesn't have such an option yet. Please use Edit: We explicitly state |
Description
Can not run the example expo project after create a new library with command
npx create-react-native-library@latest awesome-library
in version 0.44.1Steps to reproduce:
npx create-react-native-library@latest awesome-library
cd awesome-library
npm i
cd example
npm start
Packages
Selected options
✔ What is the name of the npm package? … ui-library
✔ What is the description for the package? … Test ui library component creation
✔ What is the name of package author? … Anna
✔ What is the email address for the package author? … [email protected]
✔ What is the URL for the package author? … https://github.com/AnaClaudiaSac
✔ What is the URL for the repository? … https://github.com/AnaClaudiaSac/ui-library
✔ What type of library do you want to develop? › JavaScript library
✔ Project created successfully at ui-library!
Link to repro
N/A
Environment
MacOS: 12.7.6
Node: 22.11.0
create-react-native-library: 0.44.1
The text was updated successfully, but these errors were encountered: