-
Notifications
You must be signed in to change notification settings - Fork 883
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
React Native CLI failed to determine Android project configuration. This is likely due to misconfiguration. Config output: #1608
Comments
This comment was marked as outdated.
This comment was marked as outdated.
Edit: I hid the comment above, but this issue only happens on Windows This might be an issue with the
With 7.2.2 was released 6 hours ago Update: Manually setting I think it's not meant to be released in 7.2.2 Edit 3: You can add another entry in the
|
Adding resolutions in package.json worked thanks a lot @marqroldan |
It's found in Also, @ckmonish2000, is it alright if you leave this issue open until the maintainers can take a look? Or until the glob author responds to my comment here isaacs/node-glob#468 (comment) |
@marqroldan could you try overriding glob to 7.2.1 and see if it works? |
@nicolas377 Hello, 7.2.1 was never released, but setting the option |
This has nothing to do with isaacs/node-glob#468, that's a feature targeting v8. This project uses v7, which means that this is affected by isaacs/node-glob#471. It will be fixed by the upstream PR tied to that issue. Hopefully, the v7 branch will have the fix by today. |
thankss, solved for me common.js and change options.allowWindowsEscape to false |
There is a solution on this video... SOLUTION - nodeModules – Glob – common.js – options.allowWindowsScape = true…. |
changing the 'options.allowWindowsEscape' to false works, I hope you fix the version soon. Thank you! |
Please remember that modifying node_modules is always a bad plan! Your edits will be overwritten every time a reinstallation takes place, and your edits will not transfer to git. I have a PR up to fix the issue on glob (isaacs/node-glob#473). Until it gets merged, please override all glob dependencies to 7.2.0 by adding the following to package.json: "overrides": {
"glob": "7.2.0"
} |
Glob 7.2.3 has been released, which has fixed this issue. |
Should be fixed by glob@7.2.3. If it isn't, please post a new issue at https://github.com/isaacs/node-glob/issues, ideally with a reproduction case. Thanks! |
update the glob dependency to package.json "dependencies": {
- "glob": "^7.2.0"
+ "glob": "^7.2.3"
} |
Ask your Question
Just created a new react-native project using npx react-native init, but after initializing the project running npx react-native run-android throws the error =>
Android project not found. Are you sure this is a React Native project? If your Android files are located in a non-standard location (e.g. not inside 'android' folder), consider setting
project.android.sourceDir
option to point to a new location.while android folder is in the root dir.
I also Tried to sync the gradle files and it throws the following error =>
java.lang.Exception: React Native CLI failed to determine Android project configuration. This is likely due to misconfiguration. Config output:
i've followed various approaches from setting up a react-native react-native.config file to deleting and reinstalling node modules nothing seems to work while i'm still able to run my old react-native project.
The text was updated successfully, but these errors were encountered: