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

Error when trying to run expo example #38

Open
ghost opened this issue Feb 28, 2021 · 11 comments
Open

Error when trying to run expo example #38

ghost opened this issue Feb 28, 2021 · 11 comments
Assignees

Comments

@ghost
Copy link

ghost commented Feb 28, 2021

Hi,

Unable to run the demo app from react native repo
https://github.com/GetStream/react-native-example

I followed instructions, but I am facing index.js not found in package expo-activity-feed node modules.

Failed building JavaScript bundle.
While trying to resolve module expo-activity-feed from file /Users/test/dev/react-native-example/App.js, the package /Users/test/dev/react-native-example/node_modules/expo-activity-feed/package.json was successfully found. However, this package itself specifies a main module field that could not be resolved (/Users/test/dev/react-native-example/node_modules/expo-activity-feed/src/index.js

@EJohnF
Copy link

EJohnF commented Mar 2, 2021

I having the same problem

@usupsuparma-solusi
Copy link

I have same problem

@vishalnarkhede vishalnarkhede self-assigned this Apr 6, 2021
@codeyogi911
Copy link

Same problem. Refer to the screenshot below:
image

@stevenjohn
Copy link

I'm also having there same problem - running on apple silicon in case that is similar to others...

Thanks

@stevenjohn
Copy link

@vishalnarkhede any updates as we cannot test GS activity app to evaluate the service? Thanks

@krthush
Copy link

krthush commented Jun 24, 2021

seem to be having similar problem

@younes0
Copy link

younes0 commented Jul 30, 2021

solution: upgrade expo-activity-feed with
expo install expo-activity-feed
before expo start or yarn start

@jskye
Copy link

jskye commented Aug 1, 2021

i upgraded that package but then i got a dependency issue with react-native-screens which req. react-native-screens@2.15.2 (instead of 3.4).

then when i rolled it back to that version i get:
undefined is not an object (evaluating client.currentUser.data)
line 68 in StreamApp.js

@jskye
Copy link

jskye commented Aug 1, 2021

also updating to the latest react-native-screens (3.4) and updating the package.json to match i still get the same error with the client.currentUser.data

@younes0
Copy link

younes0 commented Aug 1, 2021

@jskye did you run yarn run init-data and other commands as specified in README.md ?
I also have to say that this demo is disappointing and I couldn't make other GetStream demos (with Expo only) work besides this one.

@jskye
Copy link

jskye commented Aug 1, 2021

i did overlook to get and initialise the credentials and token.
but now ive done it and still get the same error.
even after redoing install, init, deploy.
so not sure why its not finding the client.

TypeError: undefined is not an object (evaluating 'client.currentUser.data')

This error is located at:
    in StreamApp (at App.js:28)
    in RNCSafeAreaProvider (at SafeAreaContext.tsx:74)
    in SafeAreaProvider (at App.js:27)
    in App (created by ExpoRoot)
    in ExpoRoot (at renderApplication.js:45)
    in RCTView (at View.js:34)
    in View (at AppContainer.js:106)
    in RCTView (at View.js:34)
    in View (at AppContainer.js:132)
    in AppContainer (at renderApplication.js:39)

oh i just realised there was a bunch of things in step 2 i overlooked also. my bad.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants