Closed Daniel3711997 closed 1 month ago
:warning: | Missing Reproducible Example |
---|---|
:information_source: | We could not detect a reproducible example in your issue report. Please provide either:
|
:warning: | Missing Reproducible Example |
---|---|
:information_source: | We could not detect a reproducible example in your issue report. Please provide either:
|
Same issue here, unable to build the release app on iOS
Same issue here, unable to build the release app on iOS
Just install 'commander' and it will work, if this does not help remove package-lock.json and node_modules and install it again. :)
Just install 'commander' and it will work, if this does not help remove package-lock.json and node_modules and install it > > again. :)
Oh ok! Thank you for the heads up, I will try that :)
Same issue here, unable to build the release app on iOS
Just install 'commander' and it will work, if this does not help remove package-lock.json and node_modules and install it again. :)
I tried this and it failed with a different error once, a file was missing node_modules/react-native/React/Fabric/RCTThirdPartyFabricComponentsProvider.h
. I then reinstalled pods and afterward commander
was missing again at node_modules/react-native/scripts/bundle.js:19
.
TL;DR: I agree that we need to explicitly add commander as a dependency for react-native
. I'd prefer to refactor the bundle.js
script to remove it entirely (as we have too many different versions of it in the react-native repo) as users for the most part don't interact with this directly.
If you are being affected by this, you can unblock yourself for now by:
npm install -D commander@11.1.0
I couldn't reproduce this using the steps provided, because commander@2.20.3
and 9.5.0
were transitively pulled in:
➜ AwesomeProject git:(main) ✗ npm why commander
commander@9.5.0
node_modules/commander
commander@"^9.4.1" from @react-native-community/cli@14.0.0
node_modules/@react-native-community/cli
@react-native-community/cli@"14.0.0" from react-native@0.75.2
node_modules/react-native
react-native@"0.75.2" from the root project
peer react-native@"*" from @react-native/virtualized-lists@0.75.2
node_modules/@react-native/virtualized-lists
@react-native/virtualized-lists@"0.75.2" from react-native@0.75.2
commander@2.20.3
node_modules/terser/node_modules/commander
commander@"^2.20.0" from terser@5.31.6
node_modules/terser
terser@"^5.15.0" from metro-minify-terser@0.80.10
node_modules/metro-minify-terser
metro-minify-terser@"0.80.10" from metro-transform-worker@0.80.10
node_modules/metro-transform-worker
metro-transform-worker@"0.80.10" from metro@0.80.10
node_modules/metro
metro@"0.80.10" from metro-config@0.80.10
node_modules/metro-config
metro-config@"0.80.10" from metro@0.80.10
metro-config@"^0.80.3" from @react-native/community-cli-plugin@0.75.2
node_modules/@react-native/community-cli-plugin
@react-native/community-cli-plugin@"0.75.2" from react-native@0.75.2
node_modules/react-native
react-native@"0.75.2" from the root project
peer react-native@"*" from @react-native/virtualized-lists@0.75.2
node_modules/@react-native/virtualized-lists
@react-native/virtualized-lists@"0.75.2" from react-native@0.75.2
metro-config@"^0.80.3" from @react-native/metro-config@0.75.2
node_modules/@react-native/metro-config
dev @react-native/metro-config@"0.75.2" from the root project
metro@"0.80.10" from metro-transform-worker@0.80.10
metro@"^0.80.3" from @react-native/community-cli-plugin@0.75.2
node_modules/@react-native/community-cli-plugin
@react-native/community-cli-plugin@"0.75.2" from react-native@0.75.2
node_modules/react-native
react-native@"0.75.2" from the root project
peer react-native@"*" from @react-native/virtualized-lists@0.75.2
node_modules/@react-native/virtualized-lists
@react-native/virtualized-lists@"0.75.2" from react-native@0.75.2
Hey, Solved by https://github.com/facebook/react-native/commit/9f3fe8178f91a6fef6ccd27db301eaddbe12f0f3 I guess ? Do you know when 0.75.3 is planned ?
Early next week.
Nice ! In any case, thanks for your quick fix and the proposed workaround, which does the job in the meantime.
Description
The commander dependency is missing in the react-native package which causes the iOS release builds to fail with program.version is not a function after installing packages that uses a higher version of the commander package.
Steps to reproduce
React Native Version
0.75.2
Affected Platforms
Runtime - iOS
Output of
npx react-native info
Stacktrace or Logs
Reproducer
Just follow the Steps to reproduce
Screenshots and Videos
No response