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

Update @expo/config dependency to satisfy expo doctor #45

Open
GregAtFramework opened this issue Jul 18, 2022 · 24 comments
Open

Update @expo/config dependency to satisfy expo doctor #45

GregAtFramework opened this issue Jul 18, 2022 · 24 comments

Comments

@GregAtFramework
Copy link

Old version

The package depends on"@expo/config": ^3.1.2 which leads to the follow warning when running expo doctor (on a Expo 45 project).

Expected package @expo/config-plugins@^4.1.0
Found invalid:
  @expo/[email protected]

New version

No error when running expo doctor.

@troZee
Copy link

troZee commented Jul 18, 2022

Please add below code to package.json as temporary workaround

  "resolutions": {
    "standard-version-expo/**/@expo/config-plugins": "4.1.0"
  },

@TowhidKashem
Copy link

"standard-version-expo/**/@expo/config-plugins": "4.1.0"

I'm experiencing the same issue and this didn't work for me. I re-ran yarn install as well after adding that resolution entry but same error.

@NxsHbb
Copy link

NxsHbb commented Aug 13, 2022

I got the following while ran 'expo doctor' in SDK 45

Expected package expo-modules-autolinking@~0.8.1 || ~0.9.0 Found invalid: [email protected] (for more info, run: npm why expo-modules-autolinking) Expected package @expo/prebuild-config@^4.0.0 Found invalid: @expo/[email protected] (for more info, run: npm why @expo/prebuild-config)

@gtwilliams03
Copy link

Same issue on Expo 46:

Expected package @expo/config-plugins@^5.0.0
Found invalid:
  @expo/[email protected]
  (for more info, run: npm why @expo/config-plugins)

@josephadah
Copy link

Expected package expo-modules-autolinking@~0.8.1 || ~0.9.0 Found invalid: [email protected] [email protected] (for more info, run: npm why expo-modules-autolinking)
Same issue, not sure if this has anything to do with why my facebook login not working. Redirect to facebook successfully and fails to redirect back to app.

@ghost
Copy link

ghost commented Sep 14, 2022

Same issue. Using expo 45
Expected package @expo/config-plugins@^4.1.0 Found invalid: @expo/[email protected] (for more info, run: npm why @expo/config-plugins)
Adding this to package.json (and re-installling modules) did not work:
"resolutions": { "standard-version-expo/**/@expo/config-plugins": "4.1.0" },

@ghost
Copy link

ghost commented Sep 14, 2022

Same issue. Using expo 45 Expected package @expo/config-plugins@^4.1.0 Found invalid: @expo/[email protected] (for more info, run: npm why @expo/config-plugins) Adding this to package.json (and re-installling modules) did not work: "resolutions": { "standard-version-expo/**/@expo/config-plugins": "4.1.0" },

Upgraded to Expo 46 and removed "resolutions" from package.json. Expo doctor no longer shows any issues

@andreasciamanna
Copy link

I'm already in Expo 46. I even went through an expo upgrade 46 and let Expo update any package it can recognize.

The suggested workaround does not work for me.

Shouldn't @expo/config-plugins and @expo/json-file be defined as peer-dependencies?

@jimmihagenTrifecta
Copy link

jimmihagenTrifecta commented Oct 8, 2022

I'm already in Expo 46. I even went through an expo upgrade 46 and let Expo update any package it can recognize.

The suggested workaround does not work for me.

Shouldn't @expo/config-plugins and @expo/json-file be defined as peer-dependencies?

Same situation here, @expo/prebuild-config, @expo/config-plugins and expo-modules-autolinking are all referenced by expo doctor, but not resolved by it.

Does this cause any issues? I have done some EAS builds that seem to work fine on device...

@AdeelKahan
Copy link

I create new project with Expo 46 and install some dependencies. after run expo doctor it show fix @expo/prebuild-config, @expo/config-plugins and expo-modules-autolinking these modules. I try to update those modules bit they can't update
and still throw same issue.
Is Expo 46 stable??

@nembi-solutions
Copy link

Same issue here

Expected package @expo/config-plugins@^5.0.0 Found invalid: @expo/[email protected]

@nembi-solutions
Copy link

In our case,

  • Updating the package jest-expo from "jest-expo": "^43.0.1", to `"jest-expo": `"^46.0.1", fix the "Found invalid: @expo/[email protected]" message
  • And removing the package expo-update enterily, fixed the gradlew compilation issue

@dan-online
Copy link

I was able to fix this long ago by adding this to the package.json:

 "resolutions": {
    "@expo/config-plugins": "~5.0.1",
    "@expo/prebuild-config": "~5.0.3",
    "expo-modules-autolinking": "0.10.3"
  },

@ariccio
Copy link

ariccio commented Nov 25, 2022

I just tried this resolution, and it might work?

"standard-version-expo/**/@expo/config": "~7.0.2"

@connorpmullins
Copy link

connorpmullins commented Nov 29, 2022

This seems to be a real problem. This project uses two functions exposed by @expo/config in version 3, getExpoSDKVersion, and AppJSONConfig. Neither of those functions exist in major version 6 of @expo/config.

For all of you who are manually modifying the version of expo/config that gets resolved, I think you likely are breaking this package. Not in a fatal way, if it's working for you, but yeah. That seems to be what's up.

@byCedric - are there any plans to update this package?

@farkerhaiku
Copy link

+1 this is an issue for us after updating to expo 47. should we migrate away from this package or do you intend to update it @byCedric

@adamnitti
Copy link

also experiencing this issue with expo 47. still looking for a solution, thx-

@kirtikapadiya
Copy link

same Issue found on Expo SDK 48 unable to resolved by

I was able to fix this long ago by adding this to the package.json:

 "resolutions": {
    "@expo/config-plugins": "~5.0.1",
    "@expo/prebuild-config": "~5.0.3",
    "expo-modules-autolinking": "0.10.3"
  },

@SilenceCodder
Copy link

same Issue found on Expo SDK 48 unable to resolved by

I was able to fix this long ago by adding this to the package.json:

 "resolutions": {
    "@expo/config-plugins": "~5.0.1",
    "@expo/prebuild-config": "~5.0.3",
    "expo-modules-autolinking": "0.10.3"
  },

Exactly! Am try to upgrade to Expo 48, It doesn't work for me

@svdwyer
Copy link

svdwyer commented May 27, 2023

this library seems abandoned, check out https://github.com/bilwifi/standard-version-expo

@mccraveiro
Copy link

@svdwyer that version seems abandoned as well.

@mccraveiro
Copy link

@svdwyer made another fork: https://github.com/mccraveiro/standard-version-expo

@Witillan
Copy link

"overrides" with "npm" inside the "package.json" file worked for me with Expo SDK 48

{
  "scripts": {
  },
  "dependencies": {
    "expo": "~48.0.18",
    "react": "18.2.0",
    "react-native": "0.71.8"
  },
  "overrides": {
    "expo-modules-autolinking": "~1.1.0",
    "@expo/config-plugins": "~6.0.0",
    "@expo/prebuild-config": "~6.0.0"
  }
}

Don't forget to remove the "node_modules" files and also the "package-lock.json" before "npm install"

@wootwoot1234
Copy link

@byCedric can you update the packages so we don't need these work rounds?

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