You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get the following error when trying to use it with typescript:
error TS2351: This expression is not constructable.
Type 'typeof import("/Users/guiguiguigui93/Progetti/aibattle/node_modules/passport-magic-login/dist/index")' has no construct signatures.
I'm getting the exact same thing during a conversion from CJS to ESM.
I suspect it has to do with the way imports are handled in ESM, but that's about all I know about it.
Are you using CJS or ESM, @guidev ?
Additionally, did you manage to find a solution or workaround?
If not I would think that the "trick" that works for some of the other strategy packages would work: const MagicLoginStrategy = require("passport-magic-login").Strategy
Do note I haven't tested or verified this, it's just something I suspect might work
I get the following error when trying to use it with typescript:
my code
The text was updated successfully, but these errors were encountered: