https://supertokens.com/ logo
p

PPaii

06/29/2022, 1:43 PM
Hi ! I want to add some fields to the sign up form but this error showed
r

rp

06/29/2022, 1:43 PM
hey @PPaii Can you show me the full init code>?
p

PPaii

06/29/2022, 1:44 PM
here
r

rp

06/29/2022, 1:44 PM
there seems to be issues with brackets.
p

PPaii

06/29/2022, 1:47 PM
But If I copy and paste the example, the error is still here
r

rp

06/29/2022, 1:48 PM
what is the import statement?
p

PPaii

06/29/2022, 1:49 PM
here
r

rp

06/29/2022, 1:50 PM
can you link the example for me?
Cause it should be:
Copy code
EmailPassword.init({
    signInAndUpFeature: {
        signUpForm: {
            formFields: [...]
        }
    }
})
oh right... u have imported supertokens from the node SDK
it should be imported from the supertokens-auth-react SDK
p

PPaii

06/29/2022, 2:01 PM
problem solved
Thanks!
3 Views