Found invalid: @expo/config-plugins@7.5.0 (for more info, run: npm why @expo/config-plugins) One or more checks failed, indicating possible issues with the project. Advice: Upgrade dependencies that are using the invalid package versions.

Found invalid:

16

  @expo/config-plugins@7.5.0

17

  (for more info, run: npm why @expo/config-plugins)

18

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

19

Advice: Upgrade dependencies that are using the invalid package versions.

20

Command "expo doctor" failed.

npx -y expo-doctor exited with non-zero code: 1

Hi @vonexio

What do you get if you run npx expo install --fix?

Dependencies are up to date

What does this give you?

npm why "@expo/config-plugins@7.5.0"

And what dependencies and devDependencies do you have in package.json?

@expo/config-plugins@7.5.0
node_modules/jest-expo/node_modules/@expo/config-plugins
  @expo/config-plugins@"~7.5.0" from @expo/config@8.3.1
  node_modules/jest-expo/node_modules/@expo/config
    @expo/config@"~8.3.0" from jest-expo@50.0.0-alpha.2
    node_modules/jest-expo
      jest-expo@"~50.0.0-alpha.0" from expo-module-scripts@3.1.0
      node_modules/expo-module-scripts
        expo-module-scripts@"^3.1.0" from the root project

It looks you have expo-module-scripts installed as a dependency (or maybe devDependency) in package.json

Also, the versions of @expo/config-plugins and jest-expo (and possibly others) look too new. Are you using Expo SDK 49?

If I create a new Expo SDK 49 app and run npx expo install jest-expo jest I get this:

/tmp/deps$ npm why jest-expo
jest-expo@49.0.0
node_modules/jest-expo
  jest-expo@"^49.0.0" from the root project
/tmp/deps$ npm why @expo/config-plugins
@expo/config-plugins@7.2.5
node_modules/@expo/config-plugins
  @expo/config-plugins@"7.2.5" from expo@49.0.14
[...]

whereas you have jest-expo@50.0.0-alpha-2 and @expo/config-plugins@7.5.0.

Try uninstalling jest-expo and expo-module-scripts and then install jest-expo again using:

npx expo install jest-expo jest

If you are still getting errors, please answer the following:

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.