denniarems
07/21/2022, 2:59 PMrp
07/21/2022, 3:33 PMdenniarems
07/21/2022, 7:34 PMpnpm build
https://github.com/antfu/vitesserp
07/21/2022, 7:35 PMdenniarems
07/21/2022, 8:16 PMpnpm dev
pnpm build
rp
07/22/2022, 3:49 AMdenniarems
07/22/2022, 6:02 AMrp
07/22/2022, 9:29 AMnkshah2
07/22/2022, 11:11 AMvite-ssg
so this is not a bug on the package side for sure.
The main issue is that in production builds the import
import ThirdPartyEmailPassword from "supertokens-web-js/recipe/thirdpartyemailpassword";
Gets converted to
import ThirdPartyEmailPassword from "supertokens-web-js/recipe/thirdpartyemailpassword.js";
Which is not a valid import statement because that file doesnt existimport ThirdPartyEmailPassword from "supertokens-web-js/recipe/thirdpartyemailpassword/index";
Which works in both production and dev modedenniarems
07/22/2022, 10:03 PM