Skip to content

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

@peteregbujie

Description

@peteregbujie

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(/ ... */);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions