prismicio / prismic-next

Helpers to integrate Prismic into Next.js apps
https://prismic.io/docs/technologies/nextjs
Apache License 2.0
56 stars 7 forks source link

The types for Nextjs NextApiRequestLike definitions #92

Open sarunast opened 8 months ago

sarunast commented 8 months ago

Versions

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
github-actions[bot] commented 8 months ago

This issue has been labeled as a bug since it was created using the 🚨 Bug Report Template.

Hi there, thank you so much for the report!

Following our Maintenance Process, we will review your bug report and get back to you next Wednesday. To ensure a smooth review of your issue and avoid unnecessary delays, please make sure your issue includes the following:

If you have identified the cause of the bug described in your report and know how to fix it, you're more than welcome to open a pull request address it. Check out our quick start guide for a simple contribution process.

If you think your issue is a question (not a bug) and would like quicker support, please close this issue and forward it to an appropriate section on our community forum: https://community.prismic.io

- The Prismic Open-Source Team