react-native-code-push icon indicating copy to clipboard operation
react-native-code-push copied to clipboard

SyntaxError: missing ) after argument list

Open Yuniac opened this issue 1 year ago • 4 comments

Hi and good day.

I can't release a new version using codepush, IOS only. IDK if this issue is happening on Android too.

My react-native is in a mono repo if its wroth mentioning, notice find-file flags in the command below in step 2.

I saw those two issues but they are quite old and the only fix available was by downgrading the package, so I tried updating it to the latest but got the same result. https://github.com/microsoft/react-native-code-push/issues/1819 https://github.com/microsoft/appcenter-cli/issues/759

Steps to Reproduce

  1. Have React Native version 0.73.1 & react-native-code-push 8.1.0 or 8.2.1 (both didn't work)
  2. Try to codepush using the following: DOTENV=production appcenter codepush release-react --debug -a owner/appname -d Production -k codepush.private.pem --extra-bundler-option=\"--reset-cache\" --plist-file=ios/hunt/info.plist --xcode-project-file './ios/name.xcodeproj/project.pbxproj'
  3. Recieve error:
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
          ^^^^^^^

SyntaxError: missing ) after argument list
    at internalCompileFunction (node:internal/vm:73:18)
    at wrapSafe (node:internal/modules/cjs/loader:1178:20)
    at Module._compile (node:internal/modules/cjs/loader:1220:27)
    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
    at Module.load (node:internal/modules/cjs/loader:1119:32)
    at Module._load (node:internal/modules/cjs/loader:960:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:23:47

Expected Behavior

What you expected to happen?

I expected codepush cli to be able to work and be able to send a new 'version'

Actual Behavior

What actually happens?

an error gets thrown as shared above :/

Environment

  • react-native-code-push version: 8.2.1
  • react-native version: 8.1.0
  • MacOS 14.1.1 (23B81)
  • iOS/Android/Windows version: iOS 15.7
  • Does this reproduce on a debug build or release build? build release
  • Does this reproduce on a simulator, or only on a physical device? Physical iPhone 7 plus

I have no idea if there's anything I can do to fix the missing ), I reinstalled the package but that didn't do anything.

Yuniac avatar Feb 13 '24 13:02 Yuniac

same issue after upgrade node to 16.20.2. appcenter-cli: 2.14.0 macOS Ventura 13.6.4

tree1891 avatar Feb 26 '24 05:02 tree1891

Hello @Yuniac and @tree1891, thanks for reaching out!

@Yuniac, have you updated React Native recently? Have there been any changes to your app or its dependencies before this issue appeared? Try experimenting with different Node.js versions to find out which versions are causing this issue. It would be really helpful if you could provide a sample application for further investigation.

DmitriyKirakosyan avatar Mar 21 '24 09:03 DmitriyKirakosyan

Experiencing the same thing, recently upgraded react-native and react-native-code-push dependencies

appcenter-cli: Tried both 3.0.0 and 2.14.0, both don't work react-native: 0.73.7 react-native-code-push: 8.2.2

EDIT: Downgrading to appcenter-cli v2.3.3 worked So it's probably related to this issue https://github.com/microsoft/react-native-code-push/issues/1813

zameschua avatar Apr 21 '24 15:04 zameschua

@zameschua , are you using pnpm? Could you try doing bundle and release separately, as described here https://github.com/microsoft/appcenter-cli/issues/2491#issuecomment-2142006253?

DmitriyKirakosyan avatar Jun 21 '24 06:06 DmitriyKirakosyan

Closing due to inactivity.

DmitriyKirakosyan avatar Jul 11 '24 06:07 DmitriyKirakosyan