Open Arsik0153 opened 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".
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
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
Please, add Next.js v15.0 support.