Hi everyone, I was trying to integrate SuperTokens...
# support-questions-legacy
r
Hi everyone, I was trying to integrate SuperTokens in my fastify project but every time I'm getting this error. Even in express I'm getting this. Can anyone help.
r
Hey
Can I see your import statements?
r
r
Oh. Try it without the ./node_modules/ part
Just supertokens-node/recipe/session
r
I had tried that but that too failed
r
With what error?
r
The same one
r
Also, import statements should be at the top of your file
Are you using ts? CommonJs or es6 modules?
r
Nope it's Js but es6
r
Hmm. Try using require syntax instead. Does that work?
r
Let me check
It works 😄
r
Cool
r
But why didn't it worked with ES6. Is it some kind of bug or something?
r
Not really a bug. We just support require style imports for plain JS.
imports works with ts
r
Oh okay 👍
Thanks for the support 😄