This is Kenn here, from CodeWithKenn.
From today, you'll be seeing many React/Next/Gatsby related bugs solved, just decided to add a kind of bugs Documentation style.
Because, I ended up searching for the same bugs after months (I don't remember what the solutions were). So, I decided to start documenting it here on Dev.to
This helps me to save some time and be more productive.
So, Feel free to follow if you're interested! Peace ;)
NEXTJS: getServerSideProps not working into components
You cannot use
getServerSidePropsin non-page components.
getServerSidePropscan only be exported from a page. You can’t export it from non-page files.
Want to start blogging? 🔥Join NOW!
Top comments (0)