Next-GraphQL-Blog icon indicating copy to clipboard operation
Next-GraphQL-Blog copied to clipboard

TypeError: Cannot read property 'posts' of undefined

Open rzrezaie opened this issue 6 years ago • 4 comments

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 avatar Jul 09 '19 12:07 rzrezaie

Did you run the server as well?

saifookhan avatar Jul 10 '19 10:07 saifookhan

Did you run the server as well?

yes. both server and client runing. server client

rzrezaie avatar Jul 11 '19 20:07 rzrezaie

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. :)

saifookhan avatar Jul 17 '19 11:07 saifookhan

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

rzrezaie avatar Aug 01 '19 12:08 rzrezaie