Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import not found can simple fixed adding '/server' on the "@clerk/nextjs" #15

Open
wilkerwalace opened this issue Apr 22, 2024 · 2 comments

Comments

@wilkerwalace
Copy link

Attempted import error: 'clerkMiddleware' is not exported from '@clerk/nextjs' (imported as 'clerkMiddleware').
⚠ Fast Refresh had to perform a full reload due to a runtime error.
⨯ middleware.tsx (3:1) @
⨯ (0 , clerk_nextjs__WEBPACK_IMPORTED_MODULE_0_.clerkMiddleware) is not a function
1 | import { clerkMiddleware } from "@clerk/nextjs";
2 |
3 | export default clerkMiddleware({});
| ^
4 |
5 | export const config = {
6 | matcher: ["/((?!.+.[w]+$|next).)", "/", "/(api|trpc)(.)"],
⨯ middleware.tsx (3:1) @
⨯ (0 , clerk_nextjs__WEBPACK_IMPORTED_MODULE_0
.clerkMiddleware) is not a function

@kaMatPrahlad
Copy link

I'm facing the same error in my terminal, if u find the answer please let us know

@koorukuroo
Copy link

Currently, clerk is a mess with versioning. You have to do your own versioning..
https://clerk.com/docs/quickstarts/nextjs and the current version don't match, so there's nothing to refer to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants