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

Error: unknown option `--config-cmd' #2194

Open
emreer94 opened this issue Sep 17, 2024 · 0 comments
Open

Error: unknown option `--config-cmd' #2194

emreer94 opened this issue Sep 17, 2024 · 0 comments
Labels
bug Something isn't working Needs: Triage 🔍

Comments

@emreer94
Copy link

Environment

react-native -v: 0.75.2
npm ls react-native-macos: 0.75.2
node -v: v20.10.0 or v22.7.0
npm -v: 10.2.3 or 10.8.2
yarn --version: -
xcodebuild -version: Xcode 15.4, Build version 15F31d

Steps to reproduce the bug

My RN project was running in iphones, ipads and MacOS(designed for iPads) targets perfectly. After I updated the react-native and react-native-macos to 0.75.2, it begun to fail to generate builds for MacOS (designed for iPad). I checked out the latest updates from 0.75.2 to 0.75.3 in react-native and saw a line added in react-native/scripts/bundle.js
.allowUnknownOptions() and added this into 0.75.2 as well but i still got the error named

Error: unknown option `config-cmd'

Bootstrap a project with react-native and react-native-macos library versions set to 0.75.2. Try to generate a build by targeting MacOS (designed for iPad) and you should see the error mentioned

Expected Behavior

The project shall normally start as it was before the updates to react-native and react-native-macos 0.75.2 without throwing the error: unknown option `config-cmd' while targeting MacOS (designed for iPad).

Actual Behavior

Below the 2 screenshots taken in the process
image
image

Reproducible Demo

No response

Additional context

No response

@emreer94 emreer94 added the bug Something isn't working label Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Needs: Triage 🔍
Projects
None yet
Development

No branches or pull requests

1 participant