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

Module '"wasp/server/operations"' has no exported member 'CustomSignup'.ts(2305) #2367

Open
arsser opened this issue Nov 11, 2024 · 1 comment

Comments

@arsser
Copy link

arsser commented Nov 11, 2024

When I use the "Custom Signup Action" :https://wasp-lang.dev/docs/auth/entities#custom-signup-action,like this:

import {
createProviderId,
sanitizeAndSerializeProviderData,
createUser,
} from 'wasp/server/auth'
import type { CustomSignup } from 'wasp/server/operations'

type CustomSignupInput = {
username: string
password: string
}
type CustomSignupOutput = {
success: boolean
message: string
}

export const signup: CustomSignup<
CustomSignupInput,
CustomSignupOutput

= async (args, { entities: { User } }) => {
...

And I got this error:
Module '"wasp/server/operations"' has no exported member 'CustomSignup'.ts(2305)

@infomiho
Copy link
Contributor

Did you run wasp start after declaring the operation in your Wasp file?

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

2 participants