electron-react-boilerplate / electron-react-boilerplate/electron-react-boilerplate
I can't succeed to build my electron app using sequelize and sqlite
- Dominant language
- TypeScript
- Stars
- 24.3k
- Forks
- 4k
- Avg merge
- 20m
- Merged PRs (30d)
- 4
Description
## Summary
Everything works fine in development, problem is when I try to build it for production.
I am using sequelize and sqlite3 and I've added both to my `release/app` package.json folder.
```
"dependencies": {
"sequelize": "^6.25.2",
"serialport": "^10.4.0",
"sqlite3": "^5.1.2"
}
```
When I try to start the app I get the following error

That file is in another folder that I created, inside src folder `src/models`
And I've added a new config file to webpack for that folder
```
devtool: 'source-map',
mode: 'production',
target: 'electron-main',
entry: {
lagerplatz: path.join(webpackPaths.modelsPath, 'lagerplatz.ts'),
products: path.join(webpackPaths.modelsPath, 'products.ts'),
setting: path.join(webpackPaths.modelsPath, 'setting.ts'),
},
output: {
path: webpackPaths.distModelsPath,
filename: '[name].js',
library: {
type: 'umd',
},
},
```
And it is added to the dist folder

Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.