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 properties of undefined (reading 'document') #52

Open
aanavp opened this issue Nov 22, 2022 · 3 comments
Open

TypeError: Cannot read properties of undefined (reading 'document') #52

aanavp opened this issue Nov 22, 2022 · 3 comments

Comments

@aanavp
Copy link

aanavp commented Nov 22, 2022

TypeError: Cannot read properties of undefined (reading 'document')

This error happened while generating the page. Any console logs will be displayed in the terminal window.
Source
services\index.js (144:9) @ getPosts

142 | const result = await request(graphqlAPI, query, { slug, createdAt });
143 |

144 | return { next: result.next[0], previous: result.previous[0] };
| ^
145 | };
146 |
147 | export const getCategoryPost = async (slug) => {
Call Stack
getStaticProps
pages\index.js (30:31)

@aanavp
Copy link
Author

aanavp commented Nov 22, 2022

please help me to resolve this

@Gashaw512
Copy link

The same issue also to me, If you have resolved .. please help me

@jasonyeon110
Copy link

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

3 participants