#ERR_REQUIRE_ESM with passport js

1 messages · Page 1 of 1 (latest)

crystal wraith
#

I'm getting this error whenever i import the above file and I cannot find what's causing it..
any help is much appreciated
I have installed the @types/passport too

cyan wave
#

passport.js is an ES module

#

but you are compiling your TS code into JS using the common JS module system

#

either:

#

@crystal wraith

crystal wraith
#

esmoduleinterop is true and it worked in my previous project but not working in my current project

#

I just tried removing nodemodules folder and reinstalled it and it works now.. thank you