Skip to content
Discussion options

You must be logged in to vote

They’re checking whether the inferred type satisfies PageProps. What matters is that PageProps is assignable to {} | undefined.

Anyway, I suggest to exclude **/(articles)/** from type checking. This is one quirks of an IMO quite hacky approach by Next.js. I feel more will follow. But you should use whatever solution you think is best.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@mjy9088
Comment options

@remcohaszing
Comment options

@mjy9088
Comment options

@remcohaszing
Comment options

Answer selected by mjy9088
@mjy9088
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants