You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jescalan
changed the title
Next Clerk incompatible with app router + export output
[SDK-812] Next Clerk incompatible with app router + export output
Oct 16, 2023
Package + Version
@clerk/clerk-js
@clerk/clerk-react
@clerk/nextjs
4.21.15@clerk/remix
@clerk/types
@clerk/themes
@clerk/localizations
@clerk/clerk-expo
@clerk/backend
@clerk/clerk-sdk-node
@clerk/shared
@clerk/fastify
@clerk/chrome-extension
gatsby-plugin-clerk
build/tooling/chore
Dependencies + versions
Browser/OS
NextJS (browser / node)
Description
When using the Next 13 app router and setting the Next config output to
export
, then trying to add in the ClerkProvider results in the errorError: Clerk: auth() and currentUser() are only supported in App Router
Demo repo https://github.com/ozyman42/demo-clerk-next-bug
If you comment out line 3 in the next.config.js then the error goes away,
SDK-812
The text was updated successfully, but these errors were encountered: