https://supertokens.com/ logo
Error: Initialisation not done.
e

eray

04/04/2023, 8:34 PM
Error: Initialisation not done. Did you forget to call the SuperTokens.init function? i am trying to integrate to the nestjs and this is the error i get. I dont know if i made stupid mistake.

https://cdn.discordapp.com/attachments/1092910108901650582/1092910861716308028/image.png

r

rp

04/05/2023, 5:11 AM
hey @eray have you called supertokens.init from the supertokens-node sdk anywhere?
e

eray

04/07/2023, 11:56 AM
yes i did in vue

https://cdn.discordapp.com/attachments/1092910108901650582/1093866841451008020/image.png

r

rp

04/07/2023, 11:57 AM
right. So that's the frontend. Nestjs is backend, and it has it's own supertokens.init which is from the supertokens-node SDK. Please look for that in our docs and follow it
e

eray

04/07/2023, 11:58 AM
this is the one

https://cdn.discordapp.com/attachments/1092910108901650582/1093867408034386051/image.png

r

rp

04/07/2023, 11:59 AM
yup
is this getting called at all? add a print statement before it maybe
e

eray

04/07/2023, 12:14 PM
actually it is added in providers in auth module i dont know
i cant write something like console.log("123") in service
r

rp

04/07/2023, 12:21 PM
im not sure then.. Maybe follow our guide? Or see our boilerplate code for nestjs via
npx create-supertokens-app@latest