Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No way to create new react-native app with tfjs-react-native because of dependency issues??? #7454

Closed
rbmdotdev opened this issue Mar 7, 2023 · 7 comments · Fixed by #8062

Comments

@rbmdotdev
Copy link

rbmdotdev commented Mar 7, 2023

Click to expand!
Click to expand!

Issue Type

Bug

Have you reproduced the bug with TF nightly?

No

Source

source

Tensorflow Version

tfjs-react-native-0.8.0

Custom Code

Yes

OS Platform and Distribution

all

Mobile device

all

Python version

No response

Bazel version

No response

GCC/Compiler version

No response

CUDA/cuDNN version

No response

GPU model and memory

No response

Current Behaviour?

I hope I have just missed something dumb but I don’t think so as I have been struggling to get tfjs-react-native working for the last two days.

version 0.8.0 of this library seems to be unacceptably out of date as far as its dependencies go resulting in it not being possible.....as far as I can tell.....to instantiate a new react-native / expo app and add it as a dependency.  You have to jump through some major hoops to find expo and react SDK versions that might possibly support the versions of react and react-native this library expects and even then it still won't work for me.

There is at least 1 other ticket #7323 mentioning the fact that the libraries dependencies are so out of date that it looks like the library is not maintained at all.

The response to that ticket seems to be 'no it is maintained we will update it sometime'.  Can this please get resolved?

Standalone code to reproduce the issue

follow this tutorial to create a new expo app https://docs.expo.dev/get-started/create-a-new-app/

then do npm i @tensorflow/tfjs-react-native

It will refuse to install due to conflicting react and react-native dependencies

Relevant log output

No response

@gaikwadrahul8
Copy link
Contributor

Hi, @rbmdotdev

Apologize for the delayed response and I see this PR #7451 got merged but that PR does not attempt to update the demo app or any expo dependencies. These will be updated in a later PR. you can check this comment. Thank you!

@rbmdotdev
Copy link
Author

Should the library work with just react-native and no expo right now?

@Episodex
Copy link

I have the same issue. Can we use this with some older versions of expo and other packages? I'm trying to find the sweet spot of packages versions but still no luck. Can somebody provide the versions of expo, react, react-native etc that can run 0.8.0?

@mattsoulanille
Copy link
Member

Sorry about the lack of communication on this issue. I have a commit of @tensorflow/tfjs-react-native that works with expo 47 and react-native 0.70.5, but I need to make sure our continuous integration tests can run it. We're looking into whether we can test with expo, or whether we'll need to eject into a standalone react native app. I should have an update on this next week.

@ParshuramKh
Copy link

ParshuramKh commented May 12, 2023

is the issue resolved with latest react native and tfjs-react-native library with react-native-cli?

@Priyanshu88
Copy link

Priyanshu88 commented Jul 15, 2023

At least upgrade the npm versions of your tensorflow library related to react-native package so that we can use it with our own configuration. please!

Copy link

Are you satisfied with the resolution of your issue?
Yes
No

@gaikwadrahul8 gaikwadrahul8 self-assigned this Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants