-
Notifications
You must be signed in to change notification settings - Fork 904
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
Yarn workspaces w/ Symlinks Breaks CLI Config with Exit Code 236 #2512
Labels
Comments
+1 same |
Same issue. please help with this |
It's possible this is actually an issue with |
2 tasks
I went ahead and filed a bug over here to see what they have to say: npm/cli#7834 |
I'm going to close this, as I don't believe it's an issue with RN CLI. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
Description
After upgrading to RN
0.75.3
and RN CLI14.1.0
, we found that Android builds were failing. We are using RN in a monorepo with Yarn workspaces. The issue appears to be related to having symlinks in other workspaces within the same monorepo. I was able to create a simple repro repo that shows the issue. You can reproduce the issue two ways:npx @react-native-community/cli config
./gradlew clean
This appears to be similar to #2490 and #2498, but none of the solutions there work.
Reproducible Demo
The only way to fix the issue is to remove the symlink that is triggering the error (which shouldn't be necessary, of course):
# from the root of the rncli-symlink-bug project rm scripts/script-a/src/index.js
Then, if you try again, the commands will work. The CLI needs to be fixed to properly handle/ignore these symlinks.
The text was updated successfully, but these errors were encountered: