Prerequisites
Expected Behavior
- We upgrade to Expo SDK 56 and successfully run
npx expo-doctor with no errors.
- App builds successfully
Current Behavior
During Expo SDK 56 upgrade I discovered an issue with an import of expo/config-plugins.
While running expo-doctor command I receive an error:
node_modules/expo/bin/cli config --json --full exited with non-zero code: 1
Investigating further I found an error:
Skipping config plugin check: Cannot find module '@expo/config-plugins'
Require stack:
- node_modules/react-native-ble-plx/plugin/build/withBLE.js
- node_modules/react-native-ble-plx/app.plugin.js
The plugin currently imports:
from '@expo/config-plugins'
Expo SDK 56 recommends using the Expo sub-export instead:
from("expo/config-plugins")
Adding @expo/config-plugins directly to the app (devDependencies) works around the crash, but expo-doctor warns that this package should not be installed directly.
Library version
3.5.1
Device
N/A
Environment info
Steps to reproduce
- Upgrade to latest expo SDK with npx expo install expo@^56.0.0 --fix
- Run npx expo-doctor
- You are presented with an error described in the "Current Behavior" section.
Formatted code sample or link to a repository
Relevant log output
Additional information
No response
Prerequisites
Expected Behavior
npx expo-doctorwith no errors.Current Behavior
During Expo SDK 56 upgrade I discovered an issue with an import of expo/config-plugins.
While running expo-doctor command I receive an error:
node_modules/expo/bin/cli config --json --full exited with non-zero code: 1Investigating further I found an error:
The plugin currently imports:
from '@expo/config-plugins'Expo SDK 56 recommends using the Expo sub-export instead:
from("expo/config-plugins")Adding
@expo/config-pluginsdirectly to the app (devDependencies) works around the crash, butexpo-doctorwarns that this package should not be installed directly.Library version
3.5.1
Device
N/A
Environment info
Steps to reproduce
Formatted code sample or link to a repository
Relevant log output
Additional information
No response