-
-
Notifications
You must be signed in to change notification settings - Fork 98
Description
When using Expo 53 canary builds, npm installation fails with peer dependency conflicts.
Current behavior
- Project uses: expo@53.0.0-canary-20250304-f08e984
- This package requires: expo@>=47.0.0
- Despite version being higher, npm can't resolve the dependency
Error message
'Log files:
C:\Users\Georg\AppData\Local\npm-cache_logs\2025-04-07T17_59_42_283Z-debug-0.log
npm resolution error report
While resolving: react-native-document-scanner-plugin@1.0.1
Found: expo@53.0.0-canary-20250304-f08e984
node_modules/expo
expo@"^53.0.0-canary-20250304-f08e984" from the root project
peer expo@"53.0.0-canary-20250304-f08e984" from expo-asset@12.0.0-canary-20250304-f08e984
node_modules/expo-asset
expo-asset@"12.0.0-canary-20250304-f08e984" from expo@53.0.0-canary-20250304-f08e984
peer expo@"53.0.0-canary-20250304-f08e984" from expo-constants@18.0.0-canary-20250304-f08e984
node_modules/expo-constants
expo-constants@"18.0.0-canary-20250304-f08e984" from expo@53.0.0-canary-20250304-f08e984
expo-constants@"18.0.0-canary-20250304-f08e984" from expo-asset@12.0.0-canary-20250304-f08e984
node_modules/expo-asset
expo-asset@"12.0.0-canary-20250304-f08e984" from expo@53.0.0-canary-20250304-f08e984
peer expo@"53.0.0-canary-20250304-f08e984" from expo-file-system@19.0.0-canary-20250304-f08e984
node_modules/expo-file-system
expo-file-system@"^19.0.0-canary-20250304-f08e984" from the root project
expo-file-system@"19.0.0-canary-20250304-f08e984" from expo@53.0.0-canary-20250304-f08e984
peer expo@"53.0.0-canary-20250304-f08e984" from expo-font@14.0.0-canary-20250304-f08e984
node_modules/expo-font
expo-font@"14.0.0-canary-20250304-f08e984" from expo@53.0.0-canary-20250304-f08e984
peer expo@"53.0.0-canary-20250304-f08e984" from expo-keep-awake@15.0.0-canary-20250304-f08e984
node_modules/expo-keep-awake
expo-keep-awake@"15.0.0-canary-20250304-f08e984" from expo@53.0.0-canary-20250304-f08e984
peer expo@"53.0.0-canary-20250304-f08e984" from expo-local-authentication@16.0.0-canary-20250304-f08e984
node_modules/expo-local-authentication
expo-local-authentication@"16.0.0-canary-20250304-f08e984" from the root project
Could not resolve dependency:
peerOptional expo@">=47.0.0" from react-native-document-scanner-plugin@1.0.1
node_modules/react-native-document-scanner-plugin
react-native-document-scanner-plugin@"^1.0.1" from the root project
Conflicting peer dependency: expo@52.0.44
node_modules/expo
peerOptional expo@">=47.0.0" from react-native-document-scanner-plugin@1.0.1
node_modules/react-native-document-scanner-plugin
react-native-document-scanner-plugin@"^1.0.1" from the root project
Fix the upstream dependency conflict, or retry
this command with --force or --legacy-peer-deps
to accept an incorrect (and potentially broken) dependency resolution.
Suggested solution
Please update the peer dependencies to explicitly support Expo canary builds:
"peerDependencies": {
"expo": ">=47.0.0 || ^53.0.0-canary"
}