Compatibility with newer version of react native and expo
See original GitHub issueWhile installing tfjs-react-native on my expo project, i’ve got this error
➜ smartstudio-app git:(feat/A410) ✗ npm install @tensorflow/tfjs-react-native
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: undefined@undefined
npm ERR! Found: expo-asset@8.3.3
npm ERR! node_modules/expo-asset
npm ERR! expo-asset@"~8.3.3" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer expo-asset@"^7.0.0" from @tensorflow/tfjs-react-native@0.7.0
npm ERR! node_modules/@tensorflow/tfjs-react-native
npm ERR! @tensorflow/tfjs-react-native@"*" from the root project
my config
"expo": "^42.0.0",
"expo-asset": "~8.3.3",
"expo-auth-session": "~3.3.1",
"expo-av": "~9.2.3",
"expo-camera": "~11.2.2",
"expo-constants": "~11.0.1",
i also believe this library not to be comptabile with expo-camera over version 7 while i have version 11. forcing peer deps doesn’t look like a good idea, but maybe we can write dependencies of tfjs-react-native like “expo-camera”: “>=7.0.0”, if expo does not break api between major version
Thanks a lot for the good work, team !
Issue Analytics
- State:
- Created 2 years ago
- Comments:7
Top Results From Across the Web
Upgrading to new versions - React Native
Upgrading to new versions of React Native will give you access to more APIs, views, developer tools and other goodies.
Read more >Upgrade Expo SDK
Expo maintains ~6 months of backward compatibility. Once an SDK version has been deprecated, you will no longer be able to use the...
Read more >tensorflow/tfjs-react-native version that is compatible with the ...
Is it possible to have an updated version of React native tensorflow that is compatible with the new expo module version?
Read more >React Native - Dependencies are not compatible with ...
React Native - Dependencies are not compatible with currently expo package version when running npm start · Subscribe to RSS.
Read more >Expo 46 — What's New and Why it Matters for React Native ...
Expo is a great tool for cross-platform development of React Native apps — and with the release of Expo 46, it just keeps...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@BigZ that sounds good to me. Thank you!
@byCedric yes, yarn or legacy peer deps work, but signify there should be a change in package.json Do you think i should do a PR for the change i suggested in my original message ? (ie peerdeps using >= instead of ^)