Skip to content
This repository was archived by the owner on Apr 7, 2023. It is now read-only.

Catching error: You can not use getInitialProps with getServerSideProps #11

@mkhoussid

Description

@mkhoussid

Reproducible repo

Clone repo and run yarn and then npm run dev.

Error during compile time:

error - unhandledRejection: Error: You can not use getInitialProps with getServerSideProps. Please remove getInitialProps. 

Removing getServerSideProps from pages/index.tsx resolves the issue, but this obviously isn't a solution.

Any ideas what's going on?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions