React-native-code-push: error when trying to run the appcenter codepush release-react command

Created on 20 Mar 2020  路  11Comments  路  Source: microsoft/react-native-code-push

Steps to Reproduce

  1. using "react-native": "0.61.5"
  2. usong "react-native-code-push": "^6.1.1",
  3. following all the steps in the documentation

Actual Behavior

What actually happens?

 node node_modules\.bin\react-native bundle --assets-dest C:\Users\Leonardo\AppData\Local\Temp\code-push2020219-13780-10hnpfi.czeo\CodePush --bundle-output C:\Users\Leonardo\AppData\Local\Temp\code-push2020219-13780-10hnpfi.czeo\CodePush\index.android.bundle --dev false --entry-file index.js --platform android
C:\Users\Leonardo\guiam
aisgv\node_modules\.bin\react-native:2
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
          ^^^^^^^

SyntaxError: missing ) after argument list
    at wrapSafe (internal/modules/cjs/loader.js:1055:16)
    at Module._compile (internal/modules/cjs/loader.js:1103:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1159:10)
    at Module.load (internal/modules/cjs/loader.js:988:32)
    at Function.Module._load (internal/modules/cjs/loader.js:896:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
    at internal/main/run_main_module.js:17:47
Error: Failed to release a CodePush update.

Most helpful comment

same error here :(

node node_modules\.bin\react-native bundle --assets-dest C:\Users\User\AppData\Local\Temp\code-push2020223-20420-rrzu27.z2erp\CodePush --bundle-output C:\Users\User\AppData\Local\Temp\code-push2020223-20420-rrzu27.z2erp\CodePush\index.android.bundle --dev false --entry-file index.js --platform android
D:\mlpocketguidemagichesst
d\node_modules\.bin\react-native:2
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
          ^^^^^^^

SyntaxError: missing ) after argument list
    at Module._compile (internal/modules/cjs/loader.js:872:18)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:947:10)
    at Module.load (internal/modules/cjs/loader.js:790:32)
    at Function.Module._load (internal/modules/cjs/loader.js:703:12)
    at Function.Module.runMain (internal/modules/cjs/loader.js:999:10)
    at internal/main/run_main_module.js:17:11
Error: Failed to release a CodePush update.

All 11 comments

There's someone who solved that?

@Adr1ann, apparently there is no one interested in the problem, but it has not yet been solved, I have already tested it on other machines and the problem persists

same error here :(

node node_modules\.bin\react-native bundle --assets-dest C:\Users\User\AppData\Local\Temp\code-push2020223-20420-rrzu27.z2erp\CodePush --bundle-output C:\Users\User\AppData\Local\Temp\code-push2020223-20420-rrzu27.z2erp\CodePush\index.android.bundle --dev false --entry-file index.js --platform android
D:\mlpocketguidemagichesst
d\node_modules\.bin\react-native:2
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
          ^^^^^^^

SyntaxError: missing ) after argument list
    at Module._compile (internal/modules/cjs/loader.js:872:18)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:947:10)
    at Module.load (internal/modules/cjs/loader.js:790:32)
    at Function.Module._load (internal/modules/cjs/loader.js:703:12)
    at Function.Module.runMain (internal/modules/cjs/loader.js:999:10)
    at internal/main/run_main_module.js:17:11
Error: Failed to release a CodePush update.

I am using appcenter code push in a CI/CD pipeline, and it works when using ubuntu but not when using windows. Getting the same exception as you guys when I'm trying to run it locally.

Getting the same error - anyone figure this out yet?

I rolled back t version 2.3.3

npm install [email protected] -g

And it is working again - thanks @mhmdiqbal

installing version 2.3.3 solves the problem

This appears to be a duplicate of https://github.com/microsoft/react-native-code-push/issues/1813. Please refer there for on-going investigations into this issue with App Center CLI v3.0.0.

using code-push i was succesfully
code-push release-react your-app android -d Development

Was this page helpful?
0 / 5 - 0 ratings

Related issues

EdmundMai picture EdmundMai  路  4Comments

fanzhiri picture fanzhiri  路  3Comments

DeDuckProject picture DeDuckProject  路  3Comments

Adr1ann picture Adr1ann  路  3Comments

djw27 picture djw27  路  3Comments