Skip to content

The types for Nextjs NextApiRequestLike definitionsΒ #92

@sarunast

Description

@sarunast

Versions

  • @prismicio/next: 1.5.0
  • next: 14.0.4
  • node: 21.6.1

Reproduction

NextApiRequestLike types query does not match Next.js types. According to next.js types this value does not exist. I tried both app and pages. Same error.

TS2322: Type
IncomingMessage & {     cookies: Partial<{         [key: string]: string;     }>; }
is not assignable to type NextApiRequestLike | undefined
Property query is missing in type
IncomingMessage & {     cookies: Partial<{         [key: string]: string;     }>; }
but required in type NextApiRequestLike

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