vue-cli-plugin-electron-builder: These dependencies were not found
Describe the bug After installing knex and serving the app i got an error saying “These dependencies were not found”
To Reproduce
- Create a new project
- Install knex and mysql driver
npm install --save knex mysql
- Run
npm run electron:serve
Expected behavior Electron app boot up and work normally
Screenshots
Environment (please complete the following information):
- OS and version: Windows 10
- node version: 8.11.2
- npm version: 6.4.1
- vue-cli-plugin-electron-builder version : ^1.0.0-rc.9
- electron version: ^2.0.0
- other vue plugins used: [@vue/cli-plugin-babel, @vue/cli-plugin-eslint, @vue/eslint-config-prettier]
- custom config for vcp-electron-builder:
Additional context
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 1
- Comments: 16 (6 by maintainers)
That did the trick, thank you so much for that tip @nklayman . You’re a gentleman and a scholar.
@chen-xin Make sure to mark sqlite3 as an external: