I just got introduced into clerk, my setup is a minimal setup with nextjs/typescript, with no other foreign dependency. I’m using the src directory format, and I’m following everything in the tutorial,
“
[ Server ] Error: Clerk: auth() was called but Clerk can’t detect usage of clerkMiddleware(). Please ensure the following:
- clerkMiddleware() is used in your Next.js Middleware.
- Your Middleware matcher is configured to match this route or page.
- If you are using the src directory, make sure the Middleware file is inside of it.
For more details, see https://clerk.com/docs/quickstarts/nextjs
“