Hi i got this error. Which package should i install
p
Hi i got this error. Which package should i install
r
Hey @PPaii have you installed supertokens-auth-react package? And also which version?
p
package json : "supertokens-auth-react": "^0.32.3" yarn-lock: supertokens-auth-react@^0.32.3
r
thanks. Can you open an issue about this please? Also, which bundler are you using?
since you are using
yarn
, you should also run
yarn add supertokens-web-js
. Have you already done that? If not, can you do that and try again?
can you import from
"supertokens-auth-react/recipe/emailverification/prebuiltui"
p
Hi I am using next js. I hv already installed supertokens-web-js and the version is "^0.5.0"
r
can you import from "supertokens-auth-react/recipe/emailverification/prebuiltui"
p
for EmailVerificationPreBuiltUI ?
r
yea
p
Got this now
r
what's your supertokens.init on the frontend config look like?
p
r
and how are you importing EmailPasswordPreBuiltUI?
p
In _app.tsx and [[...path]].tsx
r
remove the canHandleRoute block from _app.tsx
and also add the email verification pre built UI thing in [[...path]].tsx
p
Do you mean like this. ?
r
please see our docs
and example apps
you also need to add EmailVerificationPreBuildUI to the getRoutingComponent funciton call (as explained in our docs)
p
For next js ?
r
yea
14 Views