Skip to content
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

Config "--platform" arg causing builds to fail #2463

Closed
micaww opened this issue Jul 26, 2024 · 3 comments · Fixed by #2470
Closed

Config "--platform" arg causing builds to fail #2463

micaww opened this issue Jul 26, 2024 · 3 comments · Fixed by #2470

Comments

@micaww
Copy link

micaww commented Jul 26, 2024

Description

Builds failing with latest release because "--platform" arg is being passed to "config", but the arg is unknown causing validation issues.

Introduced in this PR, --platform android is being passed to config now: #2379

Commander needs to know about the option (ideal) or disable the validation via .allowUnknownOption()

Reproducible Demo

Run config the way the build script is trying to:

> node ./node_modules/@react-native-community/cli/build/bin.js config --platform android

error: unknown option '--platform'
@choijiho0021
Copy link

It's the same issue, how should I apply it?

@TMisiukiewicz
Copy link
Collaborator

TMisiukiewicz commented Aug 22, 2024

@choijiho0021 what React Native version are you using? It should work with 0.75

@choijiho0021
Copy link

choijiho0021 commented Aug 22, 2024

i use "react-native": "0.71.12"
It is difficult to update the react native version easily.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants