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
✖ Initialising Keystone instance
TypeError: self.knex.schema.hasTable is not a function
at new KnexStore (E:\projects\blogging\node_modules\connect-session-knex\lib\index.js:106:8)
✖ Initialising Keystone instance
TypeError: self.knex.schema.hasTable is not a function
at new KnexStore (E:\projects\blogging\node_modules\connect-session-knex\lib\index.js:106:8)
const { KnexAdapter: Adapter } = require('@keystonejs/adapter-knex');
const adapterConfig = { knexOptions: { connection: process.env.DATABASE_URL }, /*dropDatabase: true/ };
const session = require('express-session');
const KnexSessionStore = require('connect-session-knex')(session);
const knex = new Adapter(adapterConfig);
const sessionsStore = new KnexSessionStore({
knex,
tablename: "sessions"
});
const keystone = new Keystone({
adapter: knex,
sessionStore: sessionsStore
});
The text was updated successfully, but these errors were encountered: