Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

appcenter codepush, but cli not found #2776

Open
vincentsartoko opened this issue Nov 2, 2024 · 2 comments
Open

appcenter codepush, but cli not found #2776

vincentsartoko opened this issue Nov 2, 2024 · 2 comments

Comments

@vincentsartoko
Copy link

  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
Copy link

Rajeshmy commented Nov 4, 2024

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
Copy link
Contributor

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants