Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
zeripath opened this issue Jun 26, 2018 · 0 comments
Closed
1 task done

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

zeripath opened this issue Jun 26, 2018 · 0 comments

Comments

@zeripath
Copy link
Contributor

  • 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
        })
    }));
zeripath added a commit to zeripath/generator-angular-fullstack that referenced this issue Jun 26, 2018
zeripath added a commit to zeripath/generator-angular-fullstack that referenced this issue Jun 26, 2018
zeripath added a commit to zeripath/generator-angular-fullstack that referenced this issue Jun 26, 2018
@Awk34 Awk34 closed this as completed in e3cae48 Jun 26, 2018
Awk34 added a commit that referenced this issue Jun 26, 2018
Issue #2732: SequelizeStore needs to be created object containing db reference
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant