question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Compatibility with newer version of react native and expo

See original GitHub issue

While 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:open
  • Created 2 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
jinjingforevercommented, Nov 3, 2021

@BigZ that sounds good to me. Thank you!

0reactions
BigZcommented, Nov 3, 2021

@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 ^)

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found