-
-
Notifications
You must be signed in to change notification settings - Fork 276
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
These dependencies were not found #152
Comments
knex is looking for |
I already install mssql and other db driver like pg and mysql2 but still got the same error. Before i create an issue here i create one in knex repo but they say its not knex related bug and told me i should ask here. I also try to clone the electron-quick-start repo and install knex and mysql, and have no problem when i serve the app. |
After installing |
Try with a fresh project. |
I have same issue, tried this solution but no luck. It seems the only solution is to install all modules in the not found list, though my app use sqlite3 only. |
@chen-xin Make sure to mark sqlite3 as an external: // vue.config.js
module.exports = {
pluginOptions: {
electronBuilder: {
externals: ['sqlite3'],
// If you are using Yarn Workspaces, you may have multiple node_modules folders
// List them all here so that VCP Electron Builder can find them
nodeModulesPath: ['../../node_modules', './node_modules']
}
}
} |
Thank you @nklayman, Now I am luck! And you are so warmhearted mentioning the Yarn part, this really enlightened me. |
I have recently stumbled upon the same issue, searched and tried everything I can find or think of -- without success. I'm attempting to use this wonderful plugin, along with knex and sqlite3, the same as above. I can't seem to get past this error without installing all the modules. To recreate the exact scenario, here are the steps I've taken:
Then when running 'yarn electron:serve' it still triggers the error. Is there anything obvious I'm missing? If anyone has advice, or ideas to try, I'm all ears! |
@krisism Have you tried adding |
That did the trick, thank you so much for that tip @nklayman . You're a gentleman and a scholar. |
@Yurematias try adding |
The error was mine, i created the vue.config.js in the wrong place, but i moved for the root and followed your tip and resolved. thank you so much bro. |
|
puppeteer-demo.zip |
Describe the bug
After installing knex and serving the app i got an error saying "These dependencies were not found"
To Reproduce
npm install --save knex mysql
npm run electron:serve
Expected behavior
Electron app boot up and work normally
Screenshots
Environment (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: