Comments (4)
For anyone else, I solved 'Type error: Route "app/api/auth/[...nextAuth]/route.ts" does not match the required types of a Next.js Route."
By creating a new .ts file for AuthOptions.
Separating the AuthOptions should solve that error.
from next13-messenger.
Type error: Type 'OmitWithTag<typeof import("P:/website/messager-app/app/api/auth/[...nextauth]/route"), "GET" | "HEAD" | "OPTIONS" | "POST" | "PUT" | "DELETE" | "PATCH" | "config" | "generateStaticParams" | ... 6 more ... | "maxDuration", "">' does not satisfy the constraint '{ [x: string]: never; }'.
Property 'default' is incompatible with index signature.
Type 'NextApiHandler' is not assignable to type 'never'.
6 |
7 | // Check that the entry is a valid entry
8 | checkFields<Diff<{
| ^
9 | GET?: Function
10 | HEAD?: Function
11 | OPTIONS?: Function
from next13-messenger.
You might have exported a function that is not the nextjs endpoint from the route
from next13-messenger.
I have this same error. Did you fix yours?
from next13-messenger.
Related Issues (20)
- Images from cloudinary not working in production HOT 1
- Whether i18n is supported
- useEffect dependency issue in the useActiveChannel hook HOT 1
- Pusher Error: Getting a type error even when the api_key is string
- URL in GitHub points to next13-whatsapp.vercel.app, not next13-messenger.vercel.app
- In AuthForm when variant state changed then in page.tsx "sign in to your account" heading not changed.
- Adding `next-superjson-plugin` creating Error HOT 2
- Problem when I import the function getCurrentUser() HOT 2
- UserList map item issue HOT 1
- FullConversationType returning an Array with length of 0, in ConversationList.tsx HOT 1
- primsa does not support cascading deletes for many-to-many relationships
- error during deployment HOT 1
- usePathname only works in Client Components. HOT 1
- Pusher not updating after message post
- Issue with not create user in the register.js HOT 1
- Antonio
- ImageModal image size problem
- Follow your tutorial and 401 appears when you log in
- deployment error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from next13-messenger.