React-native-code-push: SyntaxError: missing ) after argument list

Created on 17 Mar 2020  路  8Comments  路  Source: microsoft/react-native-code-push

I have a react native app and it fails when I try to release a version in android app from appcenter. On iOS works.

Expected Behavior
run appcenter codepush release-react -a owner_name/app_name -d Production and see the release in app center on android app

Actual Behavior
The release fails with the following message:

Running "react-native bundle" command:

node node_modules.bin\react-native bundle --assets-dest C:\Users\Ady\AppData\Local\Temp\code-push2020217-8452-tr6cke.e6ay\CodePush --bundle-output C:\Users\Ady\AppData\Local\Temp\code-push2020217-8452-tr6cke.e6ay\CodePush\index.android.bundle --dev false --entry-file index.js --platform android
D:....\node_modules.bin\react-nat
ive:2
basedir=$(dirname "$(echo "$0" | sed -e 's,\,/,g')")
^^^^^^^

SyntaxError: missing ) after argument list
at Module._compile (internal/modules/cjs/loader.js:721:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:829:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
Error: Failed to release a CodePush update.

Environment
react-native-code-push version: 6.1.0
react-native version: 0.61.5
appcenter: 3.0.0

ext {
googlePlayServicesVersion = "17.0.0"
firebaseVersion = "17.3.4"
buildToolsVersion = "28.0.3"
minSdkVersion = 18
compileSdkVersion = 28
targetSdkVersion = 28
supportLibVersion = "28.0.0"
googlePlayServicesAuthVersion = "17.0.0"
kotlinVersion = "1.3.41"
}

Most helpful comment

same thing happening here

All 8 comments

same thing happening here

Same error - any luck anyone?!

I rolled back t version 2.3.3

npm install [email protected] -g

And it is working again

installing version 2.3.3 solves the problem

Hey folks! I just started working on this issue today. Glad you were able to find a workaround! I'm going to re-open the issue so that we can work on resolving it for version 3.0.0 of the App Center CLI as well.

We've opened a bug on our backlog to track this work. I did have a couple of questions:

  • Are you using Yarn? If so, which version?
  • Have you performed any custom modifications to the default react.gradle file from the React-Native repository?

Thanks!

  1. Yes, i use Yarn version 1.21.1
  2. More exactly?

Hi @Adr1ann,
Sorry for some delay.

We fixed this problem in this PR. These changes will be applied in the next release of appcenter-cli, as soon as it is done, I will inform you.

Hay, @Adr1ann,

The release with the fix of this error has already been made in appcenter cli, please update your cli.
I'm going to close this issue for now. Please feel free to reopen it if you still have this issue after installation update.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

djw27 picture djw27  路  3Comments

jaysig picture jaysig  路  3Comments

Phredward picture Phredward  路  3Comments

diegocouto picture diegocouto  路  4Comments

ACCTFORGH picture ACCTFORGH  路  3Comments