Skip to content

throw new SequelizeStoreException('Database connection is required') #2732

Closed
@zeripath

Description

@zeripath
  • I understand that GitHub issues are not for tech support, but for questions specific to this generator, bug reports, and feature requests.
Item Version
generator-angular-fullstack 5.0.0-rc.2
Node v10.5.0
npm 6.1.0
Operating System Ubuntu 18.04
Item Answer
Transpiler TypeScript
Markup Pug
CSS SCSS
Router ui-router
Client Tests Mocha
DB SQL
Auth Y

On running the generator and trying npm run start:server, node immediately exits with:
throw new SequelizeStoreException('Database connection is required')

The issue is in server/config/express.js:52:

    app.use(session({
        secret: config.secrets.session,
        saveUninitialized: true,
        resave: false,
        store: new Store(sqldb.sequelize)
    }));

Which should read:

    app.use(session({
        secret: config.secrets.session,
        saveUninitialized: true,
        resave: false,
        store: new Store({
            db: sqldb.sequelize
        })
    }));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions