-
Notifications
You must be signed in to change notification settings - Fork 212
Cannot run fresh created example app #842
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
Comments
Try updating your example/metro.config.js to this https://github.com/callstack/react-native-builder-bob/blob/3001529487387fbc2fe6d2bdb33e4d9501dd8cd1/packages/create-react-native-library/templates/expo-library/example/metro.config.js Or add |
hi @satya164 I am having the same issue but my metro.config.js already looks like the linked version.
what exactly do you mean? I've tried adding it to the |
@samcarton add it to the root |
@satya164 thanks for the quick reply. I found that it was actually because my TSconfig was based on another TSconfig in our monorepo that was somehow causing the error - I updated it to be the exact same as the generated TSconfig and it worked without adding |
Description
npx create-react-native-library@latest issue-min-repro
command and selectedJavaScript Library
.issue-min-repro
and ranyarn
to install deps.yarn example ios
Screenshot of the error:
Packages
Selected options
JavaScript Library
Link to repro
https://github.com/slavkolukic/react-native-issue-min-repro
Environment
info Fetching system and libraries information...
System:
OS: macOS 15.1
CPU: (8) arm64 Apple M1 Pro
Memory: 201.95 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 22.15.0
path: ~/.nvm/versions/node/v22.15.0/bin/node
Yarn:
version: 3.6.1
path: ~/.nvm/versions/node/v22.15.0/bin/yarn
npm:
version: 10.9.2
path: ~/.nvm/versions/node/v22.15.0/bin/npm
Watchman:
version: 2023.06.08.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.12.1
path: /Users/slavkolukic/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.1
- iOS 18.1
- macOS 15.1
- tvOS 18.1
- visionOS 2.1
- watchOS 11.1
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode:
version: 16.1/16B40
path: /usr/bin/xcodebuild
Languages:
Java:
version: 11.0.24
path: /usr/bin/javac
Ruby:
version: 2.7.6
path: /Users/slavkolukic/.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli":
installed: 18.0.0
wanted: ^18.0.0
react:
installed: 19.0.0
wanted: 19.0.0
react-native:
installed: 0.79.2
wanted: 0.79.2
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: Not found
newArchEnabled: Not found
iOS:
hermesEnabled: Not found
newArchEnabled: Not found
The text was updated successfully, but these errors were encountered: