I got an issue with appcenter cli 2.3.3, exactly here:
https://github.com/microsoft/react-native-code-push/issues/1886
After upgrade to newest version appcenter cli 2.6.7, I got the error:
Error: Failed to release a CodePush update.
error Command failed with exit code 3.
"react": "16.13.1",
"react-native": "mobiletechvn/react-native#v0.63.2.fix-shadow-node",
appcenter codepush release-react -a MY_REPO -d Development -t 3.0.490 -xIf i use "react-native": "0.63.2", => It work!
Should work without error
Here log output
Running "react-native bundle" command:
node node_modules/.bin/react-native bundle --assets-dest /var/folders/vk/d6dx88ld467_n1j2bxyvprzh0000gn/T/code-push202087-5764-16r58ub.1rv8/CodePush --bundle-output /var/folders/vk/d6dx88ld467_n1j2bxyvprzh0000gn/T/code-push202087-5764-16r58ub.1rv8/CodePush/index.android.bundle --dev false --entry-file index.js --platform android
Welcome to React Native!
Learn once, write anywhere
info Writing bundle output to:, /var/folders/vk/d6dx88ld467_n1j2bxyvprzh0000gn/T/code-push202087-5764-16r58ub.1rv8/CodePush/index.android.bundle
info Done writing bundle output
info Copying 195 asset files
info Done copying assets
Converting JS bundle to byte code via Hermes, running command:
Error: Failed to release a CodePush update.
error Command failed with exit code 3.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Please see reproduction steps
Hi @luatnd
Thanks for reporting!
Thanks for this case, we will try to fix it as soon as possible.
Hi
I was also able to reproduce the issue with
"react-native": "^0.63.3",
Working fine with
"react-native": "0.63.3",
$> appcenter --help
Visual Studio App Center helps you build, test, distribute, and monitor mobile apps.
Version 2.7.1
In my case the issue was only occurring on Android
@yfuks your issue seem to be different one, related to semver version, which is discussed in #1676 so if you have a working example on which we can try to repro, could you please share it in the aforementioned issue?
I've created the PR:1104 with fix for appcenter-cli. Let's wait for the review and release.
@n-kurdiukov-akvelon I have a similar issue if using "react-native": "github:jitsi/react-native#efd2aff5661d75a230e36406b698cfe0ee545be2", in my package.json, even when using appcenter version 2.7.3
please tell me if you want me to open a new issue.
edit:
should not the getReactNativeVersion looks into node_modules/react-native/package.json to see the installed version rather than in the project package.json ?
Most helpful comment
Hi @luatnd
Thanks for reporting!
Thanks for this case, we will try to fix it as soon as possible.