Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: _lib_safe_action__WEBPACK_IMPORTED_MODULE_0__.authenticatedAction.createServerAction is not a function #229

Open
peteregbujie opened this issue Nov 1, 2024 · 0 comments

Comments

@peteregbujie
Copy link

peteregbujie commented Nov 1, 2024

image

I followed the best practices. But I still get this error message.

Creating actions from procedures:

When creating server actions from procedures, create the procedure first and then chain the createServerAction() method:
good-example.ts

const procedure = createServerActionProcedure()/* ... */.createServerAction();

const action1 = procedure.input(/* ... /);
const action2 = procedure.input(/ ... */);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant