ReasonJun

Nextjs 14 & Clerk V5 beta & middleware Problem 본문

Frontend/Next.js

Nextjs 14 & Clerk V5 beta & middleware Problem

ReasonJun 2024. 3. 2. 00:36
728x90

error : 

While setting up the middleware to utilize the new clerk, I created the middleware with a different name so that it would not be activated for ease of development. Then the above error occurred. When I checked, the clerk was using its own jwt system and was unable to retrieve session data as a header, so it was relying on the auth system in middleware. Therefore, the server side clerk module could not be used unless middleware was activated. After reactivating middlware, the above code worked normally.

 

728x90
Comments