Back

getting Error: e._formData.get is not a function, with nextjs 14 server actions

  • 0
  • Self Hosted
  • Web
Barceló
23 Mar, 2024, 05:35

Using nextjs 14, I am trying in my Signup component to call a server action to add the new registered user to a certain team with teams.createMembership(...)

I tried the following but it didn't work for me: https://discord.com/channels/564160730845151244/1193874699915112448/1193939706644279437

I also made a call to a simple server action, just with a console.log and the error appears anyway

TL;DR
Issue with 'e._formData.get is not a function' in Next.js 14 when trying to call server actions like `teams.createMembership(...)`. A developer attempted a recommended solution unsuccessfully and also encountered the error with a basic server action.
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