-
Notifications
You must be signed in to change notification settings - Fork 884
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
Fails to determine project configuration #854
Comments
Hey, I know this may be confusing, but I would recommend you to drop custom React Native configuration and just run the CLI from within So |
@grabbou What I have to do is run I've already written this in the original question, though I realize it might be slightly confusing with all the different conditions. |
Can you make sure that your In CLI 3.x, it's entirely decoupled from Android and iOS. That way, other platforms, such as Windows, can integrate in an easier way. Now, the CLI detects the presence of a platform by looking up your You can see how PS. If you have |
I've solved like this on - def command = "${npx} --quiet --no-install react-native config"
+ def command = "yarn --silent react-native config"
` `` |
Solved it by deleting the entries in yarn.lock as described here: |
Closing due to lack of response from OP. Will reopen if needed. We're going to remove |
In our case, we have an atypical structure since we added React Native to an existing Android application years ago. After changing the main app/module name to I'm sure you could configure things to make the non-standard structure work, which we were doing previously, but with the advent of autolinking, the extra hoop jumping didn't feel warranted. So we caved to the defaults and are moving forward now. |
I have met the same issue, solved it by yarn install, I think this is caused by I use npm install, anyway I think it is caused by wrong version of react-native-community |
is there a way to add android tv as a platform in the react-native-video's platforms?
|
I'm trying to run react native in a monorepo, and if I run the project with the old
2.9
version, I can run in development mode, if I override thenative_modules.gradle
-file like this:As well as run
react-native start
in my mobile folder, andrun-android
in my root folder in a separate terminal window.But then can't build for production, due to it not finding the
node_modules/react-native/cli.js
-file when I run with the--variant=release
flag.Now I've upgraded to version
3.0.1
of the@react-native-community/cli
package, And added a configuration file in my root folder like so:Then I run
yarn react-native run-android --root packages/mobile
from root.However, it keeps complaining about my configuration.
If I run
react-native config
in my root directory, this is what I get:The text was updated successfully, but these errors were encountered: