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

TypeError: Cannot read property 'posts' of undefined #7

Open
rzrezaie opened this issue Jul 9, 2019 · 4 comments
Open

TypeError: Cannot read property 'posts' of undefined #7

rzrezaie opened this issue Jul 9, 2019 · 4 comments

Comments

@rzrezaie
Copy link

rzrezaie commented Jul 9, 2019

hello,
i get this error when load localhost:3000

screencapture-localhost-3000-2019-07-09-12_38_08
what is the problem? bellow is my .env config:

MONGO_URL=mongodb://127.0.0.1:27017/next-graphql
AUTH_SECRET=as
SESSION_SECRET=ss
PORT=4000
CLIENT_URL_DEV=http://127.0.0.1:3000
CLIENT_URL_PROD=https://next-graphql.now.sh
GOOGLE_CLIENT_ID=gcid
GOOGLE_SECRET_ID=gsid
GA_TRACKING_ID=gtid
ROOT_URL_DEV=http://127.0.0.1:4000
ROOT_URL_PROD=https://next-graphql-api.now.sh
CLOUDINARY_PRESET=vhvuj1cw
CLOUDINARY_KEY=233327915763333
CLOUDINARY_NAME=teseh

@rzrezaie rzrezaie changed the title Cannot read property 'posts' of undefined TypeError: Cannot read property 'posts' of undefined TypeError: Cannot read property 'posts' of undefined Jul 9, 2019
@saifookhan
Copy link

Did you run the server as well?

@rzrezaie
Copy link
Author

rzrezaie commented Jul 11, 2019

Did you run the server as well?

yes. both server and client runing.
server
client

@saifookhan
Copy link

Oh, yes.
You'd have to make some sample data in the DB first.

If you are still stuck, I can send you some data. :)

@rzrezaie
Copy link
Author

rzrezaie commented Aug 1, 2019

thank you saifookhan . yes , please send me some sample data.

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

2 participants