T
TanStack6mo ago
other-emerald

TypeError: import_node_async_hooks.AsyncLocalStorage is not a constructor

Using latest of start
"@tanstack/react-form": "^1.12.3",
"@tanstack/react-query": "^5.80.10",
"@tanstack/react-start": "^1.121.30",
"@tanstack/react-form": "^1.12.3",
"@tanstack/react-query": "^5.80.10",
"@tanstack/react-start": "^1.121.30",
When I go to submit my form I am getting TypeError: import_node_async_hooks.AsyncLocalStorage is not a constructor Anybody running into similar issues?
12 Replies
optimistic-gold
optimistic-gold6mo ago
where are you running this? does the runtime support async local storage?
other-emerald
other-emeraldOP6mo ago
I just created a barebones example of start trying to upgrade to devinxi and when I added my form I am getting the error
optimistic-gold
optimistic-gold6mo ago
and where are you running this?
other-emerald
other-emeraldOP6mo ago
Locally
optimistic-gold
optimistic-gold6mo ago
in nodejs? which version of nodejs?
other-emerald
other-emeraldOP6mo ago
Soon as I hover the button I get the error - cant see anything when I click
other-emerald
other-emeraldOP6mo ago
node 23.0.0
optimistic-gold
optimistic-gold6mo ago
ah this means that you are leaking server side code into the client can you share the project?
other-emerald
other-emeraldOP6mo ago
Yup 1 min
other-emerald
other-emeraldOP6mo ago
@jpudysz yes I am also using tanstack form and my own rest api
genetic-orange
genetic-orange5mo ago
GitHub
@tanstack/start-storage-context seem wrong bundled in client side c...
Which project does this relate to? Router, react-start Describe the bug New version update will cause a bug that node:async_hooks.AsyncLocalStorage is bundle in client side code. i have reproduce i...

Did you find this page helpful?