Back

Are Nextjs 14 server actions supported?

  • 0
  • Users
  • Web
  • Cloud
mayank.12
18 Dec, 2023, 13:30

I am trying to implement a server action to create a user on appwrite in nextjs 14 but it is throwing "TypeError: e._formData.get is not a function" error , however if i do a simple console.log in the server action it is working fine. Is the error on my end or are server actions not supported yet?

TL;DR
The user is having an issue with implementing a server action in Next.js 14. They are getting a "TypeError: e._formData.get is not a function" error. They mention that a console.log in the server action works fine. The user is asking if server actions are supported in Next.js 14 and for assistance with their code. Solution: It is unclear from the provided information whether server actions are supported in Next.js 14 or if there is an issue with the user's code. Further information or code details would be helpful to diagnose the problem accurately.
Guille
18 Dec, 2023, 14:33

Can you show us your code to know what are you doing? are you using the node SDK or Web SDK?

mayank.12
18 Dec, 2023, 16:14

this is the server action function. I am passing the email, password and name from the signup form when the submit button is clicked

mayank.12
18 Dec, 2023, 16:31

One thing I just noticed is that for the first time after running the website, it works correctly but after that, it throws the error. Please see the video

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more