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

Incompatibility with @expo/config-plugins version 7.3.1 and Expo 50 requirement #221

Open
savayer opened this issue Feb 14, 2024 · 6 comments

Comments

@savayer
Copy link

savayer commented Feb 14, 2024

The issue detected by npx expo-doctor@latest

Check Expo config for common issues
✔ Check package.json for common issues
✔ 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 native modules do not use incompatible support packages
✔ Check for legacy global CLI installed locally
✖ Check that native modules use compatible support package versions for installed Expo SDK
✔ Check that packages match versions required by installed Expo SDK

Detailed check results:

Expected package @expo/config-plugins@~7.8.0
Found invalid:
@expo/[email protected]

(for more info, run: npm why @expo/config-plugins)
Advice: Upgrade dependencies that are using the invalid package versions and remove resolutions from package.json that are pinning @expo/config-plugins to an invalid version.

One or more checks failed, indicating possible issues with the project.

@savayer savayer changed the title Incompatibility with @expo/config-plugins Version 7.3.1 and Expo 50 Requirement Incompatibility with @expo/config-plugins version 7.3.1 and Expo 50 requirement Feb 14, 2024
@KesoGizmoYoshi
Copy link

Strange i can use this library with @expo/config-plugins@~7.8.0 and [email protected]

@tymoxx
Copy link

tymoxx commented Apr 15, 2024

Strange i can use this library with @expo/config-plugins@~7.8.0 and [email protected]

do you get all checks when you run npx expo-doctor?

@purushottam-e9
Copy link

@tymoxx @KesoGizmoYoshi @savayer any luck here?

@tymoxx
Copy link

tymoxx commented May 3, 2024

I decided to get rid of the react-native-version-check library and to keep the latest released version manually in the repo file. Then the app just makes a request to read latest version and compare it with the currently installed version.

@savayer
Copy link
Author

savayer commented May 3, 2024

I also got rid of this package and just use this, works ok for me

@dominik-mrugalski
Copy link

We also had a problem with that (ReactNative Expo app, latest ExpoSDK), but it works after some improvements.
It looks like this plugin can't read information from expo setting directly, and it throws an error. I've just passed this 3 values as params to needUpdate function and it works fine for us.

VersionCheck.needUpdate({
        currentVersion: Constants?.expoConfig?.version, // ex: "1.0.3"
        country: "US",
        packageName: Constants?.expoConfig?.extra?.packageName,  // ex: "com.yourpackage.app"
      }).then(async (res) => {
        if (res.isNeeded) {
             // Do what you want here (show modal, disable app or any other action)
        }
      });

Remember you need to have this app already released in the stores, to be able to check versions from stores. Second important fact is that you need to pass proper package name. We have two targets (dev and prod) and only with a valid packageName (from production config) will it return the correct response!

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

5 participants