You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When parsing schemas with new z.file() in edge runtime in next.js server actions it throws TypeError: Cannot read properties of undefined (reading 'args') error
There's a fix in the latest beta. Upgrade and let me know how it goes. Not sure if it'll work in production or not...still seeing the warning. Zod is designed to fall back to a non-Dynamic Code Evaluation approach when eval isn't supportd.
When parsing schemas with new
z.file()
in edge runtime in next.js server actions it throwsTypeError: Cannot read properties of undefined (reading 'args')
errorRepro: https://github.com/lr0pb/zod-file-server-action-repro
Server actions parsing fails, while similar parsing in route handler also with edge runtime - works fine
The text was updated successfully, but these errors were encountered: