Next.js Discord

Discord Forum

useFormState

Answered
Porcelaine posted this in #help-forum
Open in Discord
Avatar
PorcelaineOP
'useFormState' is declared but its value is never read.ts(6133)
Module '"react-dom"' has no exported member 'useFormState'.ts(2305)
Answered by Porcelaine
@risky The problem is found. When the next.js version is 14, no error will be reported.
View full answer

3 Replies

Avatar
risky
are you using latest @types/react-dom? if so you should consider updating it...
Avatar
PorcelaineOP
@risky The problem is found. When the next.js version is 14, no error will be reported.
Answer
Avatar
risky
they prob updated their min of react-dom i think (thus you downloaded that package)