-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
@nx/expo install problem, pods not installed on ios #22393
Labels
Comments
same +1 |
4 tasks
same +1 |
i think you need to explicitly add packages to project root's package.json's dependencies:
I submit a pr to add to project's package.json when running |
FrozenPandaz
pushed a commit
that referenced
this issue
Jun 21, 2024
<!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> ## Current Behavior <!-- This is the behavior we have today --> ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #22393 (cherry picked from commit 5646b38)
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
Current Behavior
I am trying to install a package, @react-native-firebase/app.
I run the command
nx install expotest @react-native-firebase/app
This is fine, it installs and shows in the workspace package.json.
However, it is not referenced in the app level package.json, and also the pods are not installed when running
nx run expotest:prebuild
thennx run expotest:run-ios
To resolve it, I have to manually add the package to the project package.json.
Is this the correct behaviour? Should @nx/expo be taking care of this for me instead?
Expected Behavior
package.json should be updated with the package name, or whatever the proper linking steps are to install the pods.
GitHub Repo
No response
Steps to Reproduce
npx create-nx-workspace@latest --preset=expo --appName=expotest
, choose all defaults for prompts.nx run expotest:run-ios
nx install expotest expo-dev-client
nx run expotest prebuild
, choose all defaults for prompts.nx run expotest:run-ios
nx install expotest expo-build-properties @react-native-firebase/app
to plugins in app.json as per https://rnfirebase.io/
10.
nx run expotest:prebuild
11.
nx run expotest:run-ios
12. Observe build error:
"@react-native-firebase/app": "*"
to project package.jsonnx run expotest:prebuild
nx run expotest:run-ios
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
This happens with other packages (such as react-native-reanimated) so it doesn't appear to be specific to the @react-native-firebase package.
Interestingly, running
nx install expotest react-native-vision-camera
outputs the following log:The text was updated successfully, but these errors were encountered: