Can't detect cleckMiddleware()

Using clerk in nextjs app router.. Encountered this error.. What could the issue here? I have the middleware in the root dir and clerkProvider wrapped around the whole app but calling the currentUser() function throws this error.
1 Reply
Matvey
Matvey7mo ago
What could the issue here?
1) The middleware file is in the wrong folder 2) This page is excluded in the middleware config
Want results from more Discord servers?
Add your server