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 did start the fire 🙃 The problem is found. When the next.js version is 14, no error will be reported.
View full answer

3 Replies

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