Back

$e._formData.get is not a function server action issue

  • 0
  • Web
Vineet
23 May, 2024, 11:56

https://github.com/vercel/next.js/issues/60687

I saw the fix for this issue was merged last week.

https://github.com/appwrite/sdk-generator/pull/834

I upgraded my local appwrite setup to 1.5.6 but still the issue seems to persist.

Can someone guide on how to add the fix to sdk for the local setup ?

TL;DR
Issue with $e._formData.get is not a function server action. Tried workaround but it's not working. Followed guide for handling SSR auth. Fix for issue merged last week, upgraded local Appwrite setup to 1.5.6 but problem remains. Asking how to add fix to SDK for local setup. Solution: Need to add the provided code snippet to next.config.mjs to fix the issue.
Vineet
23 May, 2024, 11:56
Vineet
23 May, 2024, 11:58

Even the workaround provided in the issue is not working for me

Vineet
23 May, 2024, 11:58
TypeScript
/** @type {import('next').NextConfig} */

const webpack = require('webpack')
const nextConfig = {
    webpack(config) {
        config.plugins.push(
            new webpack.NormalModuleReplacementPlugin(
                /^isomorphic-form-data$/,
                `${config.context}/form-data-mock.js`
            )
        )
        return config
    },
}

export default nextConfig

Added this to next.config.mjs

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