bradstewart / electron-boilerplate-vue

Boilerplate application for Electron runtime
724 stars 94 forks source link

webpack+sqlite3 not working #44

Open wotermelon opened 7 years ago

wotermelon commented 7 years ago

how can I use sqlite3 with this boilerplate?

lazytyper commented 7 years ago

I will create a fork and add sqlite3 support. Do you want to use sequelizejs, too? -> http://docs.sequelizejs.com/en/v3/

lazytyper commented 7 years ago

I've forked it, modified the webpack config, but it still does not find module 'sqlite3'. With a boilerplate for electron + angular2 I got it to work.

Maybe someone can help? https://github.com/lazytyper/electron-boilerplate-vue

wotermelon commented 7 years ago
externals: {
    'sqlite3': 'commonjs sqlite3'
  }

I also add this, it still cant not find module sqlite3. Thank you, I would like to use sequelizejs.