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

Cannot find module node_modules/react-native/local-cli/cli.js #2554

Open
gunti96 opened this issue Oct 21, 2024 · 2 comments
Open

Cannot find module node_modules/react-native/local-cli/cli.js #2554

gunti96 opened this issue Oct 21, 2024 · 2 comments

Comments

@gunti96
Copy link

gunti96 commented Oct 21, 2024

Description

Hello! After upgrading to react-native 0.75.4, the iOS bitrise build fails because of an appcenter-cli command which tries to require the react-native cli from node_modules/react-native/local-cli/cli.js, which is inexistent starting RN 0.75. I also found this issue on stackoverflow, which provides more details. Of course, we can use the suggested patch as a workaround, but I guess it should be properly fixed by the appcenter-cli lib itself insidereact-native-utils.ts file.

Error: Cannot find module '/Users/vagrant/git/node_modules/react-native/local-cli/cli.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
    at Module._load (node:internal/modules/cjs/loader:985:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
    at node:internal/main/run_main_module:28:49 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}
@MikhailSuendukov
Copy link
Contributor

Hello and thank you for reaching out to us, we have prepared a PR to fix this issue.

@NJneeraj
Copy link

NJneeraj commented Jan 6, 2025

Same issue

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