calling server action from client sido throws webpack error - default webpack config
I'm trying to use a server action and when i run it i get
my component:
my server action:
I'm using multiple server actions in my project, and none of them throws this error, they work fine.
16 Replies
this is what i get in the client
iirc you can't call a server action like that
they can only be bound to buttons or forms
nvm
try using via the closure, but it seems to not work calling ouside a
onClick
or something similar
top, got called normally here
what version of next are you using?14.0.3
it works fine here https://github.com/Huilensolis/Pictura/blob/90743dc25898f5e6aa82352da9bbcca57a1ab967/src/app/(site)/app/settings/section/profile/page.tsx#L94
GitHub
Pictura/src/app/(site)/app/settings/section/profile/page.tsx at 907...
Social media platform for image sharing. Upload, search, download, and engage with images uploaded by the community. - Huilensolis/Pictura
try removing the .next folder and node_modules
and im calling it from a client function
maybe its a compilation issue
let me try that
sure it is
tried it, same errors
its a full nextjs issue
GitHub
TypeError: webpack_modules[moduleId] is not a function · vercel...
Running a Next api route will surface the following error: TypeError: webpack_modules[moduleId] is not a function at webpack_require (/Users/noah/Dev/BeeBeeLearn/.next/server/webpack-runtim...
it's not a new issue
GitHub
[NextJS 14.1.0] TypeError: Cannot read properties of undefined (rea...
Link to the code that reproduces this issue https://github.com/dashawk/nextjs-14-bugger To Reproduce Clone the provided repository Run yarn install && yarn dev Browse to http://localhost:30...
well, i guess next js is broken since feb 13 and they dont plan on fixing it any soon
lmao
yeah
ty anyways @nyx (Rustular DevRel)
sorry for not fixing it
hopefully next fixes it soon enough