I have a few warnings constantly appearing in the console when updating expo-cli
(yarn global) or when installing/removing packages in the project. There are no issues running the project, or building it either, itβs just annoying to have them - and possibly the project might be actually missing something.
Anyway, first, updating expo-cli
keeps on giving this warning:
$ yarn global add expo-cli
...
[3/4] π Linking dependencies...
warning "expo-cli > @expo/config-plugins > @expo/configure-splash-screen@0.2.1" has unmet peer dependency "expo-splash-screen@*".
Second, installing/uninstalling packages gives the following warnings:
$ expo install
Installing using Yarn.
> yarn install
yarn install v1.22.5
[1/4] π Resolving packages...
success Already up-to-date.
$ yarn remove <non-essential-package-name>
...
[2/2] π¨ Regenerating lockfile and installing missing dependencies...
warning " > @ui-kitten/components@5.0.0" has incorrect peer dependency "react-native-svg@^9.13.6".
warning " > expo-barcode-scanner@9.0.0" has unmet peer dependency "@unimodules/core@*".
warning " > expo-barcode-scanner@9.0.0" has unmet peer dependency "unimodules-barcode-scanner-interface@*".
warning " > expo-barcode-scanner@9.0.0" has unmet peer dependency "unimodules-permissions-interface@*".
warning "expo-notifications > expo-application@2.3.0" has unmet peer dependency "@unimodules/core@*".
warning " > react-native-maps@0.27.1" has unmet peer dependency "prop-types@^15.0 || ^16.0".
warning " > react-native-webview@10.7.0" has incorrect peer dependency "react@16.11.0".
warning " > react-native-webview@10.7.0" has incorrect peer dependency "react-native@>=0.60 <0.63".
This is the package.json
file:
{
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"startp": "NODE_ENV='production' && expo start --no-dev --minify"
},
"dependencies": {
"@eva-design/eva": "^2.0.0",
"@eva-design/material": "^2.0.0",
"@react-native-async-storage/async-storage": "^1.13.2",
"@react-native-community/masked-view": "0.1.10",
"@react-native-community/picker": "1.6.6",
"@react-navigation/bottom-tabs": "^5.6.1",
"@react-navigation/material-top-tabs": "^5.2.12",
"@react-navigation/native": "^5.6.1",
"@react-navigation/stack": "^5.6.2",
"@ui-kitten/components": "^5.0.0",
"axios": "^0.19.2",
"base-64": "^0.1.0",
"buffer": "^5.6.0",
"expo": "^39.0.0",
"expo-barcode-scanner": "~9.0.0",
"expo-constants": "~9.2.0",
"expo-device": "~2.3.0",
"expo-document-picker": "~8.4.0",
"expo-file-system": "~9.2.0",
"expo-font": "~8.3.0",
"expo-image-manipulator": "~8.3.0",
"expo-image-picker": "~9.1.1",
"expo-jwt": "^1.3.0",
"expo-linear-gradient": "~8.3.0",
"expo-local-authentication": "~9.3.0",
"expo-notifications": "~0.7.2",
"expo-permissions": "~9.3.0",
"expo-secure-store": "~9.2.0",
"expo-status-bar": "~1.0.2",
"form-data": "^3.0.0",
"lottie-react-native": "~2.6.1",
"querystring": "^0.2.0",
"react": "16.13.1",
"react-dom": "16.13.1",
"react-native": "https://github.com/expo/react-native/archive/sdk-39.0.3.tar.gz",
"react-native-appearance": "~0.3.3",
"react-native-gesture-handler": "~1.7.0",
"react-native-get-random-values": "^1.5.0",
"react-native-htmlview": "^0.16.0",
"react-native-maps": "0.27.1",
"react-native-modal": "^11.5.6",
"react-native-reanimated": "~1.13.0",
"react-native-redash": "14.2.1",
"react-native-safe-area-context": "3.1.4",
"react-native-screens": "~2.10.1",
"react-native-svg": "12.1.0",
"react-native-tab-view": "^2.14.4",
"react-native-web": "~0.13.7",
"react-native-webview": "10.7.0",
"react-redux": "^7.2.0",
"react-refresh": "^0.8.3",
"reanimated-bottom-sheet": "^1.0.0-alpha.22",
"redux": "^4.0.5",
"redux-thunk": "^2.3.0",
"rn-sliding-up-panel": "^2.4.3",
"uuid": "^8.3.1"
},
"devDependencies": {
"@babel/core": "^7.10.4",
"@ui-kitten/metro-config": "^5.0.0",
"babel-eslint": "^10.1.0",
"babel-plugin-transform-remove-console": "^6.9.4",
"babel-preset-expo": "^8.3.0",
"eslint": "^7.4.0",
"eslint-plugin-react": "^7.20.3",
"eslint-plugin-react-native": "^3.8.1",
"metro-config": "^0.58.0",
"react-native-svg-transformer": "^0.14.3"
},
"private": true
}
and this is the expo diagnostics
output:
expo diagnostics
Expo CLI 4.0.6 environment info:
System:
OS: macOS 10.15.7
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 12.18.2 - /usr/local/bin/node
Yarn: 1.22.5 - /usr/local/bin/yarn
npm: 6.14.5 - /usr/local/bin/npm
SDKs:
iOS SDK:
Platforms: iOS 14.2, DriverKit 20.0, macOS 11.0, tvOS 14.2, watchOS 7.1
IDEs:
Android Studio: 4.0 AI-193.6911.18.40.6514223
Xcode: 12.2/12B45b - /usr/bin/xcodebuild
npmPackages:
expo: ^39.0.0 => 39.0.4
react: 16.13.1 => 16.13.1
react-dom: 16.13.1 => 16.13.1
react-native: https://github.com/expo/react-native/archive/sdk-39.0.3.tar.gz => 0.63.2
react-native-web: ~0.13.7 => 0.13.18
Expo Workflow: manage
Can someone help me fix these issues?