connect-dynamodb
connect-dynamodb copied to clipboard
ESM support
Hello,
Is it possible to use ES6 import like this (import DynamoDBStore from 'connect-dynamodb';) instead of require?
When I try the standard import I get errors relating to: TypeError: Cannot read properties of undefined (reading 'Store')
Thanks, Alex
I would like to see this too
Sorry if this is not what you want to do. My understanding is that the following is available in ES Module.
import express from 'express';
import session from 'express-session';
import connectDynamodb from 'connect-dynamodb';
const app = express();
const DynamoDBStore = connectDynamodb(session);
app.use(session({ store: new DynamoDBStore(options), secret: 'secret' }));