microsoft / react-native-code-push

React Native module for CodePush
http://appcenter.ms
Other
8.99k stars 1.48k forks source link

appcenter codepush, but cli not found #2776

Open vincentsartoko opened 2 weeks ago

vincentsartoko commented 2 weeks ago
  1. Run this command: appcenter codepush release-react -a xxx/yyy -d Production

  2. Error Error: Cannot find module 'C:\Users\xxx\Desktop\Lahelu\Codebase\Client\node_modules\react-native\local-cli\cli.js'

Has anyone ever encountered such issue?

Rajeshmy commented 2 weeks ago

Am facing the same after upgrading RN version from 0.74.2 to 0.76.1 (Works well with 0.74.2)

error Details below:- node:internal/modules/cjs/loader:1148 throw err; ^

Error: Cannot find module '/Users/xxxxx/node_modules/react-native/local-cli/cli.js' at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15) at Module._load (node:internal/modules/cjs/loader:986:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12) at node:internal/main/run_main_module:28:49 { code: 'MODULE_NOT_FOUND', requireStack: [] }

Node.js v20.14.0 [Error] "react-native bundle" command exited with code 1.

version:- "react-native-code-push": "^8.3.1"/"9.0.0" and others as well,

Requesting Help here !!

MikhailSuendukov commented 2 weeks ago

Hello, and thank you for reaching out! I believe the issue is that since React Native 0.76, a new architecture is enabled by default, which isn't currently supported by react-native-code-push.

Could you please try disabling this new architecture following this guide? Let us know if this resolves the issue. Thank you!

TuanTran-Tsk commented 1 week ago

Hello, and thank you for reaching out! I believe the issue is that since React Native 0.76, a new architecture is enabled by default, which isn't currently supported by react-native-code-push.

Could you please try disabling this new architecture following this guide? Let us know if this resolves the issue. Thank you!

Does CodePush Team have any plan to support New Architecture?