standard-version-expo icon indicating copy to clipboard operation
standard-version-expo copied to clipboard

Update @expo/config dependency to satisfy expo doctor

Open GregAtFramework opened this issue 2 years ago • 24 comments

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.

GregAtFramework avatar Jul 18 '22 07:07 GregAtFramework

Please add below code to package.json as temporary workaround

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

troZee avatar Jul 18 '22 11:07 troZee

"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.

TowhidKashem avatar Jul 30 '22 00:07 TowhidKashem

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)

NxsHbb avatar Aug 13 '22 07:08 NxsHbb

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)

gtwilliams03 avatar Aug 31 '22 23:08 gtwilliams03

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.

josephadah avatar Sep 02 '22 00:09 josephadah

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" },

Toonf avatar Sep 14 '22 11:09 Toonf

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

Toonf avatar Sep 14 '22 11:09 Toonf

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?

andreasciamanna avatar Sep 28 '22 13:09 andreasciamanna

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...

jimmihagenTrifecta avatar Oct 08 '22 00:10 jimmihagenTrifecta

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??

AdeelKahan avatar Oct 31 '22 06:10 AdeelKahan

Same issue here

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

nembi-solutions avatar Nov 08 '22 16:11 nembi-solutions

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

nembi-solutions avatar Nov 09 '22 11:11 nembi-solutions

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"
  },

dan-online avatar Nov 12 '22 16:11 dan-online

I just tried this resolution, and it might work?

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

ariccio avatar Nov 25 '22 02:11 ariccio

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?

connorpmullins avatar Nov 29 '22 21:11 connorpmullins

+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

farkerhaiku avatar Feb 22 '23 16:02 farkerhaiku

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

adamnitti avatar Mar 01 '23 03:03 adamnitti

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"
  },

kirtikapadiya avatar Apr 06 '23 12:04 kirtikapadiya

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

SilenceCodder avatar Apr 27 '23 19:04 SilenceCodder

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

svdwyer avatar May 27 '23 09:05 svdwyer

@svdwyer that version seems abandoned as well.

mccraveiro avatar Jun 06 '23 00:06 mccraveiro

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

mccraveiro avatar Jun 06 '23 15:06 mccraveiro

"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"

Witillan avatar Jul 10 '23 19:07 Witillan

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

wootwoot1234 avatar Jul 14 '23 15:07 wootwoot1234