Can't find server action if not imported in a non-`use client` file
Unanswered
Sun bear posted this in #help-forum
Sun bearOP
Facing an issue where I get an error like :
If I call a server action from a client component, and that client component is the only file which imports that action. If I import that action in a server file, then the error goes away and the server action works.
Failed to find Server Action "bacd4c8bb443bfba3481b24f1dfd4b87c32cd5cd". This request might be from an older or newer deployment.If I call a server action from a client component, and that client component is the only file which imports that action. If I import that action in a server file, then the error goes away and the server action works.