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.Followed this https://appwrite.io/docs/tutorials/nextjs-ssr-auth/step-1 for handling ssr auth
Even the workaround provided in the issue is not working for me
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
Recommended threads