-
Notifications
You must be signed in to change notification settings - Fork 5k
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
expo-doctor has a non fatal error in 51.*.* #28545
Comments
Hi there! It looks like your issue requires a minimal reproducible example, but it is invalid or absent. Please prepare such an example and share it in a new issue. The best way to get attention to your issue is to provide a clean and easy way for a developer to reproduce the issue on their own machine. Please do not provide your entire project, or a project with more code than is necessary to reproduce the issue. A side benefit of going through the process of narrowing down the minimal amount of code needed to reproduce the issue is that you may get lucky and discover that the bug is due to a mistake in your application code that you can quickly fix on your own. ResourcesCommon concerns"I've only been able to reproduce it in private, proprietary code"You may not have spent enough time narrowing down the root cause of the issue. Try out the techniques discussed in this manual debugging guide to learn how to isolate the problem from the rest of your codebase. "I didn't have time to create one"That's understandable, it can take some time to prepare. We ask that you hold off on filing an issue until you are able to fully complete the required fields in the issue template. "You can reproduce it by yourself by creating a project and following these steps"This is useful knowledge, but it's still valuable to have the resulting project that is produced from running the steps, where you have verified you can reproduce the issue. |
i can't reproduce this. it's possible that you're using an old version of expo-doctor. try |
i just created an sample application using here is the url that was created https://github.com/kziemski/doctor-example |
same here @brentvatne but with Expo 50, I even tried to delete the dependencies and install them again, and I still get the same error.
I leave a screenshot and expo dependencies:
|
thanks, @keith-kurak will check this out |
Thank you for filing this issue! |
I'm having trouble reproducing this locally, as well. @outaTiME would you be able to confirm your local environment with @outaTiME and/or @kziemski , could you try one of the underlying commands manually from your terminal, e.g., At first I thought it was maybe a Node 20/ NPM 10 thing, but I switched to that and still couldn't reproduce. |
@outaTiME i included it in the original post npm explain @unimodules/core --json npm explain expo-cli --json |
Yes, for sure, here is the output of the
and on the other hand, here is the output of
I hope it will be useful 🙏 |
@kziemski ah, sorry I missed that before! Thanks for providing it again, and thanks for your output, as well, @outaTiME ! It looks like we try to match on |
oh then its definitely npm@10.6.0. i regularly run nvm install-latest-npm so i probably caught a later version. |
# Why Fixes #28545, which presents itself on the most recent NPM versions. Somewhere between 10.2 and 10.6, the stderr prefix changed from `npm ERR!` to `npm error`. The deep dependency check code was matching on `/npm ERR! No dependencies found matching/` to detect that there's no matching dependencies, so it broke all deep dep checks on these later versions. # How Changed the match to `/No dependencies found matching/`. Since we request the JSON output from `npm explain`, which also identifies that no results, thought about going after that, but it's really just matching against the same string, so Example: ``` npm explain expo-cli --json npm error No dependencies found matching expo-cli { "error": { "code": null, "summary": "No dependencies found matching expo-cli", "detail": "" } } ``` Also added some debug logging to the `explainDependencies` code so we can get a little more info if these commands fail in the future (there's been other hard-to-detect issues before due to node setup weirdness). # Test Plan No more errors on those checks with npm 10.7: <img width="658" alt="image" src="https://github.com/expo/expo/assets/8053974/43b817fc-3e60-4aff-88a4-0409eab2417b"> No errors on those checks still with npm 10.7 <img width="656" alt="image" src="https://github.com/expo/expo/assets/8053974/f2512a10-b76f-47d3-b560-f16bf817a0bc"> Also, still picks up issues if I install one of the dependencies those checks detects. # Checklist <!-- Please check the appropriate items below if they apply to your diff. This is required for changes to Expo modules. --> - [ ] Documentation is up to date to reflect these changes (eg: https://docs.expo.dev and README.md). - [ ] Conforms with the [Documentation Writing Style Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md) - [ ] This diff will work correctly for `npx expo prebuild` & EAS Build (eg: updated a module plugin).
fix should be live now! |
👍 npx expo-doctor@latest
✔ Check Expo config for common issues Detailed check results: The following packages should be updated for best compatibility with the installed expo version: One or more checks failed, indicating possible issues with the project. |
@keith-kurak if you're possibly on the discord can you check my related issue to this? I don't know if this is an expo problem i need to report or if its the package owner's issue. Tried to follow the code for "--check" and doctor but not sure where it get thats info. |
Summary
npx
✔ Check Expo config for common issues
✔ Check package.json for common issues
✔ Check native tooling versions
✔ Check dependencies for packages that should not be installed directly
✔ Check for common project setup issues
✔ Check for issues with metro config
✔ Check npm/ yarn versions
✔ Check Expo config (app.json/ app.config.js) schema
✖ Check that packages match versions required by installed Expo SDK
...
✖ Check that native modules do not use incompatible support packages
Unexpected error while running 'Check that native modules do not use incompatible support packages' check:
Error: Failed to find dependency tree for @unimodules/core: npm explain @unimodules/core --json exited with non-zero code: 1
✖ Check for legacy global CLI installed locally
Unexpected error while running 'Check for legacy global CLI installed locally' check:
Error: Failed to find dependency tree for expo-cli: npm explain expo-cli --json exited with non-zero code: 1
✔ Check that native modules use compatible support package versions for installed Expo SDK
running those individual commands gives the following:
npm error No dependencies found matching @unimodules/core
{
"error": {
"code": null,
"summary": "No dependencies found matching @unimodules/core",
"detail": ""
}
}
npm error No dependencies found matching expo-cli
{
"error": {
"code": null,
"summary": "No dependencies found matching expo-cli",
"detail": ""
}
}
What platform(s) does this occur on?
Web
SDK Version
51.0.0-preview.8
Environment
expo-env-info 1.2.0 environment info:
System:
OS: Linux 5.15 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish)
Shell: 5.1.16 - /bin/bash
Binaries:
Node: 20.12.2 - ~/.nvm/versions/node/v20.12.2/bin/node
Yarn: 4.1.1 - ~/.nvm/versions/node/v20.12.2/bin/yarn
npm: 10.6.0 - ~/.nvm/versions/node/v20.12.2/bin/npm
SDKs:
Android SDK:
API Levels: 34
Build Tools: 33.0.1, 34.0.0
npmGlobalPackages:
eas-cli: 7.8.5
Expo Workflow: managed
Minimal reproducible example
running npx expo-doctor. i don't have a minimal reproducable project as this happens for any project regardless .
The text was updated successfully, but these errors were encountered: