T
TanStack3mo ago
wise-white

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
flat-fuchsia
flat-fuchsia3mo ago
where are you running this? does the runtime support async local storage?
wise-white
wise-whiteOP3mo 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
flat-fuchsia
flat-fuchsia3mo ago
and where are you running this?
wise-white
wise-whiteOP3mo ago
Locally
flat-fuchsia
flat-fuchsia3mo ago
in nodejs? which version of nodejs?
wise-white
wise-whiteOP3mo ago
Soon as I hover the button I get the error - cant see anything when I click
wise-white
wise-whiteOP3mo ago
node 23.0.0
flat-fuchsia
flat-fuchsia3mo ago
ah this means that you are leaking server side code into the client can you share the project?
wise-white
wise-whiteOP3mo ago
Yup 1 min
wise-white
wise-whiteOP3mo ago
@jpudysz yes I am also using tanstack form and my own rest api
deep-jade
deep-jade2mo 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?