I have a solution that is a mono-repo using Lerna v7 and npm v8. It is using `supertokens-node`. `no...
u
I have a solution that is a mono-repo using Lerna v7 and npm v8. It is using
supertokens-node
.
node_modules
are being hoisted to the root of the repository. Till I was using
v14
of
supertokens-node
, it was being hoisted to the root correctly. There was only one copy of the library. Everything was fine. Since I have upgraded to
v15
though, I have noticed that there is a separate copy of
supertokens-node
in each package where it is being used. Consequently, I am getting the following error on startup.
Error: Please call the supertokens.init function before using SuperTokens
How do I rectify this?
r
hey @umarfkhawaja there is nothing that changed in the repo regarding this (i think). So maybe the issue is somewhere on your end?
u
thanks for responding @rp_st ... I have tried this a couple of times the issue definitely only occurs once I upgrade to v15
r
hmmm
this is strange
u
r
the changes from v14 to v15 have nothing to do anything that affects packaging
u
common-library
should not have this copy of
supertokens-node
I wouldn't have thought so either
@rp_st might have been an issue on my side after all
the root node_modules was getting 14.1.4 for some reason
might have been the package-lock.json
r
right! cool
u
that definitely was the issue
thanks for your help