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
After double checking the official examples, I noticed that they are also having the same issues:
Running the official Start Clerk Basic example in Stackblitz results in an immediate crash when starting the dev server. The error appears to originate from the TanStack Start server runtime.
Hi @elvc! We updated the existing tanstack start clerk quickstart to make sure it works pre-devinxi. Please check the pinned versions on that repo.
If you want to use devinxi version of tanstack, see #4409 workaround.
The use of getEvent() on Clerk's side is mainly to read env variables from Cloudflare workers since Nitro attaches it to context. I'm not sure about devinxi if there's a proper way of doing it, but we'll see
Even the most basic example crashed with same error.
P.S. The version got updated again today in the example but still crashes.
Interestingly, Codesandbox doesn't crash for some reason.
This is without Clerk?
Yes, correct. That's just the most basic barebone example as you can see in the package.json file.
Hi @elvc! We updated the existing tanstack start clerk quickstart to make sure it works pre-devinxi. Please check the pinned versions on that repo.
If you want to use devinxi version of tanstack, see #4409 workaround.
The use of getEvent() on Clerk's side is mainly to read env variables from Cloudflare workers since Nitro attaches it to context. I'm not sure about devinxi if there's a proper way of doing it, but we'll see
Probably can close this ticket and can continue to track the Clerk's ticket there). I believe it's still an open issue and @wobsoriano / Clerk is still working on it.
Yup. I opened an issue regarding usage of start function from 3rd party packages here #4409
> npx gitpick tanstack/router/tree/main/examples/react/start-basic
With GitPick clone specific directories or files from GitHub!
✔ tanstack/router tree:main examples/react/start-basic > start-basic
✔ Picked tree from repository in 1.47 seconds.
Activity
[-]No HTTPEvent found in AsyncLocalStorage.[/-][+]No HTTPEvent found in AsyncLocalStorage[/+]julionav commentedon Jun 13, 2025
Same issue here.
elvc commentedon Jun 13, 2025
@schiller-manuel Should we not upgrade to the devinxi version yet?
ScraperWizard commentedon Jun 13, 2025
same issue
solace commentedon Jun 13, 2025
Workaround in #4409.
wobsoriano commentedon Jun 13, 2025
Hi @elvc! We updated the existing tanstack start clerk quickstart to make sure it works pre-devinxi. Please check the pinned versions on that repo.
If you want to use devinxi version of tanstack, see #4409 workaround.
The use of
getEvent()on Clerk's side is mainly to read env variables from Cloudflare workers since Nitro attaches it to context. I'm not sure about devinxi if there's a proper way of doing it, but we'll seeGuilhermeAmado commentedon Jun 13, 2025
Same problem here.
GuilhermeAmado commentedon Jun 13, 2025
@wobsoriano the #4409 workaround didn't work for me.

The server doesn't start.
I'm stuck here:
elvc commentedon Jun 13, 2025
Thanks @wobsoriano @solace the workaround works for me (devinxi version).
However, I wonder if this is a bigger issue in general. As I mentioned in the description, it happens on Start Basic React Query as well.
elvc commentedon Jun 13, 2025
Even the most basic example crashed with same error.
P.S. The version got updated again today in the example but still crashes.
Interestingly, Codesandbox doesn't crash for some reason.
wobsoriano commentedon Jun 13, 2025
This is without Clerk?
elvc commentedon Jun 13, 2025
Yes, correct. That's just the most basic barebone example as you can see in the package.json file.
ian-pascoe commentedon Jun 14, 2025
Same issue with barebones example
elvc commentedon Jun 14, 2025
Looks like a widespread issue. Is the team aware of it or able to reproduce as well?
cc @tannerlinsley
targetlucked69 commentedon Jun 14, 2025
Crazy that they shipped devinxi with all these bugs here and there. But hey, it's beta!
3 remaining items
wobsoriano commentedon Jun 15, 2025
Yup. I opened an issue regarding usage of start function from 3rd party packages here #4409
airtonix commentedon Jul 21, 2025
It's still actually a bug.
wobsoriano commentedon Jul 21, 2025
I get this in 1.129.0
airtonix commentedon Jul 21, 2025
ok looks like
1.129.1works:airtonix commentedon Jul 22, 2025
spoke too soon... it's still a thing
abielzulio commentedon Aug 15, 2025
any update?
schiller-manuel commentedon Aug 15, 2025
@abielzulio please create a new issue including a complete minimal example if you encounter this or a similar issue
stephen776 commentedon Sep 16, 2025
I can confirm this is still an issue. I will try to put together a repo if I can
htndev commentedon Oct 3, 2025
I can confirm the issue as well
schiller-manuel commentedon Oct 3, 2025
@htndev please provide a complete minimal example and open a new github issue
htndev commentedon Oct 3, 2025
@schiller-manuel Hope this helps. Let me know if you need any help with it
https://github.com/htndev/tanstack-async-storage-issue
schiller-manuel commentedon Oct 3, 2025
@htndev you cannot call a server function from the custom server handler (i.e. inside fetch)
htndev commentedon Oct 4, 2025
Yeah, you're right. I also suspected that it causes the issue. However, it makes me wondering, is it expected though?
schiller-manuel commentedon Oct 4, 2025
yes you cannot call a server function before you handed over to start. server entry happens just before