Server Action : useFormStatus not working
Answered
Almond stone wasp posted this in #help-forum
Almond stone waspOP
I am trying to use
I am using next14
useFormStatus as mentioned in the docs but getting this error.react-dom"' has no exported member named 'useFormStatus'. Did you mean 'FormStatus'?ts(2724)I am using next14
Answered by Ray
try update to latest version
@types/react@latest @types/react-dom@latest6 Replies
what is the react-dom version and @type/react-dom?
Almond stone waspOP
"react-dom": "18.2.0",
"@types/react-dom": "18.2.7",@Almond stone wasp js
"react-dom": "18.2.0",
"@types/react-dom": "18.2.7",
try update to latest version
@types/react@latest @types/react-dom@latestAnswer
then restart typescript server
Almond stone waspOP
it worked, thanks Ray 😊