Skip to content

Error: Clerk: auth() was called but Clerk can't detect usage of authMiddleware() #5

Description

I need help on solving this problem I'm getting on Clerk:

Screenshot 2024-01-09 at 10 36 08 PM

I'm not really sure what the error. I tried fixing the middleware.ts and looked into inside the _components/navbar/actions.tsx I didn't find any bug in it. Can someone help me understand the problem and possibly point out where I made a mistake?

Screenshot 2024-01-09 at 10 41 51 PM

and here's how the folder structure on my project and the files inside the app folder:
Screenshot 2024-01-09 at 10 42 22 PM

Screenshot 2024-01-09 at 10 49 08 PM

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions