https://supertokens.com/ logo
Title
j

johnmeloy

02/18/2023, 7:06 PM
I'm trying to integrate supertokens with a pre-existing nodejs express server, and can't get SessionRequest to load. Any ideas? [1] import { SessionRequest } from "supertokens-node/framework/express/index.js"; [1] ^^^^^^^^^^^^^^ [1] SyntaxError: Named export 'SessionRequest' not found. The requested module 'supertokens-node/framework/express/index.js' is a CommonJS module, which may not support all module.exports as named exports. [1] CommonJS modules can always be imported via the default export, for example using:
r

rp

02/18/2023, 9:19 PM
Hey @johnmeloy this is a types import TS projects. You don’t need it since you are not using TS