Comments (11)
Update: Seems like the vercel team prioritized the issue and a PR was open to address it.
As a workaround, until the fix is out, prefetch
in the <Link/>
needs to explicitly be set to true
or false
.
from javascript.
Please note that this does not occur when running in development. You'll need to build and start the server in order to reproduce this.
from javascript.
For the visual learners out there...
from javascript.
I also got an error deploying on vercel Nextjs 14 but everything was perfect during development.
from javascript.
@kaksv yes, this only seems to occur during while running in dev mode. Notably, this is reproducible locally though by building and serving locally.
from javascript.
There's a worse version of this bug that occurs too. It seems that only navigating to the root page breaks, so there's scenarios like:
- Navigate to "/fake-page" -> 404
non-found.tsx
renders - Navigate from there to "/real-page" ->
/real-page/page.tsx
renders - Navigate from there to "/" -> No navigate!
This is really bad! In practice, a 404 page being buggy is much more acceptable than a 404 page breaking a completely unrelated page
from javascript.
Any update on this?
This is really quite bad, and makes Clerk a huge risk to introduce on the App Router.
from javascript.
Hello @JacobJaffe :)
Just wanted to let you know that we're actively working on this. I will get back to you with more details soon.
from javascript.
Hey @JacobJaffe turns out this issue can be replicated just by using nextjs. I have created this issue in their repo. (I used the gif from this PR, I could replace it with on of ours if it bothers you.)
For some context, we are making use of headers()
inside of ClerkProvider when this is mounted as a server component which causes the issue. While not ideal you can either add "use client" on top of RootLayout
or for now create a custom wrapper with "use client" and only re export ClerkProvider from there.
from javascript.
@nikosdouvlis @panteliselef Thank you for the updates and for looking into this! Looking forward to the upstream fix, and thanks for relaying the workaround.
from javascript.
The fix should have landed in [email protected]
from javascript.
Related Issues (20)
- Incorrect Return Type for getAllowlistIdentifierList HOT 3
- Cannot remove divider above Privacy and Terms links in core-2 HOT 4
- Unable to Access users Property in Clerk SDK for Node.js v5.0.2 HOT 1
- `@clerk/nextjs` middleware redirection issue on login with email on chrome HOT 16
- [Node SDK]: Failed to resolve JWK during verification HOT 6
- Home Page not auto-redirecting to clerk auth page on localhost in "@clerk/nextjs": "^5.0.3" HOT 4
- `@clerk/upgrade` does not seem to work via yarn HOT 3
- Unable to add custom header when calling "isProtectedRoute". HOT 4
- forceRedirectUrl is not working when using SignInButton HOT 16
- Too many redirects on clerk.com (Dashboard AND docs) HOT 1
- React Native @clerk/clerk-expo is not working as expected HOT 20
- Sign out not working reliably in @clerk/nextjs v5 HOT 2
- [Next App Router] i18n not work on `clerkMiddleware` HOT 6
- I upgraded my app from version Expo SDK 50 to 51 and since then clerk has completely broken HOT 7
- Clerk core v2 - Clerk fails to load under cypress iframe - "Browser unauthenticated" HOT 3
- Flaky userId/sessionId on the client side after logging in HOT 1
- Dependency Dashboard
- Fastify plugin doesn't run before request validation HOT 2
- Unable to disable redirect when using custom signout flow
- @clerk/remix v4.0.12 RequestInit: duplex option is required when sending a body. HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from javascript.