IdoPesok / zsa

https://zsa.vercel.app
MIT License
838 stars 25 forks source link

Next.js v15 support #225

Open Arsik0153 opened 1 month ago

Arsik0153 commented 1 month ago

Please, add Next.js v15.0 support.

crivera commented 1 month ago

Got this error when trying to run zsa-openapi

Type error: Route "src/app/api/v1/[[...openapi]]/route.ts" has an invalid "POST" export:
  Type "{ params?: Record<string, string> | undefined; } | undefined" is not a valid type for the function's second argument.
    Expected "RouteContext", got "{ params?: Record<string, string> | undefined; } | undefined".
      Expected "RouteContext", got "undefined".
Kuzry commented 2 weeks ago

I have an error at build time:

unhandledRejection Error: Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
  - react:      18.3.1
  - react-dom:  19.0.0-rc-66855b96-20241106

This occurs when i install zsa-openapi

Pulstura commented 1 week ago

Got this error when trying to run zsa-openapi

Type error: Route "src/app/api/v1/[[...openapi]]/route.ts" has an invalid "POST" export:
  Type "{ params?: Record<string, string> | undefined; } | undefined" is not a valid type for the function's second argument.
    Expected "RouteContext", got "{ params?: Record<string, string> | undefined; } | undefined".
      Expected "RouteContext", got "undefined".

I've got a similar error message to that, except it only occurs during build and I'm using createRouteHandlersForAction