#Module '"react-dom"' has no exported member 'useFormState'.

5 messages · Page 1 of 1 (latest)

daring verge
#

Ok so i when it was experimental there was some upstream issue with typescript which lee made an issue on.. this is an old project which i was updating and it seems to be broken now... i made sure to update both typescript and react-dom..

"typescript": "^5.4.4"
"react-dom": "^18.2.0",

Am i missing something?

Before it had it like this
import { experimental_useFormState as useFormState } from "react-dom";

but since i updated all my packages, vercel dosent like it
Attempted import error: 'experimental_useFormStatus' is not exported from 'react-dom' (imported as 'useFormStatus').

ashen cloakBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

tired smelt
daring verge
#

oh i had to update those

#

wait whats typescript then xD