Closed brianlenz closed 1 month ago
+1 same
Same issue. please help with this
It's possible this is actually an issue with npx
. I've seen the same issue running npx
with other commands (e.g. npx @react-native-vector-icons/codemod
) 🤔 I'm using the latest 10.9.0
version of npm
/npx
...
I went ahead and filed a bug over here to see what they have to say: https://github.com/npm/cli/issues/7834
I'm going to close this, as I don't believe it's an issue with RN CLI.
Refer: https://github.com/npm/cli/issues/7834 https://github.com/npm/map-workspaces/pull/176
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):
Then, if you try again, the commands will work. The CLI needs to be fixed to properly handle/ignore these symlinks.