Error: The string to be decoded is not correctly encoded when using @clerk/nextjs in Next.js 15.0.3
I’m running into an issue while setting up a Next.js app (v15.0.3) with u/clerk/nextjs. When I try to run the development server, the app compiles but fails with the following error:
Key Details:
Stack:
Next.js version: 15.0.3
@clerk/nextjs version: Latest (as of this post).
Environment Setup:
Running locally with Docker.
.env includes keys like NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY and CLERK_SECRET_KEY (see below).
Files for Context:
layout.tsx:
next.config.js:
.env:
docker-compose.yaml:
Dockerfile
What I’ve Tried:
Verified environment variables are correctly set.
Reinstalled all dependencies.
Confirmed the Clerk keys are correct for my development environment.
Could this be related to the way environment variables are passed or the server-side setup? Any debugging tips for narrowing down where this string decoding error is happening? Thanks in advance for your help! Let me know if you need more details
Could this be related to the way environment variables are passed or the server-side setup? Any debugging tips for narrowing down where this string decoding error is happening? Thanks in advance for your help! Let me know if you need more details
0 Replies