Skip to content
Discussion options

You must be logged in to vote

I ran into this too. If you're using getServerSideProps with a dynamic route like [slug].js, make sure the file is inside the pages directory (not the new app directory). Also, check that you're accessing context.params.slug properly. For me, the issue was that I forgot to return the data as props, so the page didn’t receive anything. Once I fixed that, it worked fine.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@ankur-ctrl-z
Comment options

Answer selected by Jacker64
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants