Closed CoSNaYe closed 3 months ago
same error here, any solution ???
I figure out the solution. here step that I follow to solve this error.
.npmrc
and add the line node-linker=hoisted
"expo-router": "*", "expo-splash-screen": "*", "react-native-safe-area-context": "*", "react-native-screens": "*"
"main": "index.js",
import 'expo-router/entry';
Reference: https://github.com/nrwl/nx/discussions/21847#discussioncomment-9030581 Thank you fidestechnology
@Chirag-kalsariya it works! thanks a lot! although it's different from what official doc states, not sure if i should close this issue
the workable solution is at the latest commit of the demo repo: https://github.com/CoSNaYe/nx-with-expo-router3/commit/1be175111a95e380369b41c4f8b433641d611ae3
However, it is different from Nx and expo-router v3 official doc has stated
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.
Current Behavior
npx nx run-ios app
root package.json
I intentionally install a native library
react-native-fbsdk-next
To run the sample app, please create an facebook app in https://developer.facebook.com/, and fill in the config inapp.json
appID
,clientToken
,scheme
What the sample repo has done?
npx create-nx-workspace@latest --preset=expo --appName=app
npx nx install app expo-router react-native-safe-area-context react-native-screens expo-linking expo-constants expo-status-bar react-native-fbsdk-next
npx nx install app react-native-svg-transformer@1.3.0
due to this bug"main": "expo-router/entry"
inapps/app/package.json
as expo-router official docsaysapps/app/package.json
due to this bugExpected Behavior
Shouldn't crash
GitHub Repo
https://github.com/CoSNaYe/nx-with-expo-router3
Steps to Reproduce
npx nx run-ios app
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
No response