umarfkhawaja
10/31/2023, 1:55 PMsupertokens-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?rp_st
10/31/2023, 2:00 PMumarfkhawaja
10/31/2023, 2:01 PMrp_st
10/31/2023, 2:01 PMrp_st
10/31/2023, 2:02 PMumarfkhawaja
10/31/2023, 2:02 PMrp_st
10/31/2023, 2:02 PMumarfkhawaja
10/31/2023, 2:02 PMcommon-library
should not have this copy of supertokens-node
umarfkhawaja
10/31/2023, 2:03 PMumarfkhawaja
10/31/2023, 2:16 PMumarfkhawaja
10/31/2023, 2:16 PMumarfkhawaja
10/31/2023, 2:16 PMrp_st
10/31/2023, 2:19 PMumarfkhawaja
10/31/2023, 2:34 PMumarfkhawaja
10/31/2023, 2:34 PM