Next.js Discord

Discord Forum

Server Actions dont work on vercel

Unanswered
Arinji posted this in #help-forum
Open in Discord
Hilo, so I just get this error on vercel (which i dont get locally)
Error: Cannot find module 'next/dist/compiled/next-server/app-page-experimental.runtime.prod.js'
Require stack:

https://github.com/Arinji2/vibeify
Any ideas?

18 Replies

Have you done npm update locally and test if it works?
it does work locally
With prod version too?
one sec lemme check
yup it worked, but the npm update did do sm changes to the package lock, lemme push that and see if it fixes on vercel
but locally building works
👍
@Clown 👍
still broken :(
Error: Cannot find module 'next/dist/compiled/next-server/app-page-experimental.runtime.prod.js'
Require stack:
- /var/task/.next/server/app/(authPages)/register/page.js
- /var/task/node_modules/next/dist/compiled/next-server/server.runtime.prod.js
- /var/task/___next_launcher.cjs
...
Error: Runtime exited with error: exit status 1
Runtime.ExitError
would something like deleting the project on vercel help?
Bump :(
i regret to say i now also suffer from this issue
the error appears after i upgraded from 13.5.4 to 13.5.6-canary.7, you may want to downgrade your next version
works on 13.5.5
make sure to add the ts ignore thing as well when you import exprimental use Form stuff
I think this is due to nextjs moving from react@experimental to react@canary - the work is still ongoing
yeaa :(