-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
electron-db does not work when packaged #981
Comments
👋 Thanks for opening your first issue here! If you have a question about using Electron Packager, read the support docs. If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. Development and issue triage is community-driven, so please be patient and we will get back to you as soon as we can. To help make it easier for us to investigate your issue, please follow the contributing guidelines. |
In order to debug your problem further, we need a minimal testcase to reproduce your problem. Using the |
@malept , Thanks for the suggestion. Here is the basic project with all specified dependencies : BasicProject , I also tried adding asar explicitly based on the comments here , but it did not help. I look forward to your review. |
Unfortunately, what you provided is quite a bit more than a minimal Electron app. I work on this in my free time, and I can't allocate any time to debugging your app to figure out what's wrong with it. I suspect what's happening is that Since this is not a bug with Electron Packager (but rather |
@malept : I kept some bit in this version to test all dependencies which are called atleast once for a complete test. But yes, my bad on adding the node modules in the zip and i do respect your time. I was making a better minimal version again. And while doing it, i considered your suggestion on Electron-DB. And the good news is you are correct. The app is packaged and works perfectly without it. @malept 👍 - The bug is indeed because of Electron-DB . This debugging has taken many days and the project many weeks which started with electron-db as a core requirement. The only similar replacement to Electron-DB which i can find now is NeDB, but it seem to have similar issues. Is there any suggestion for a simple DB for electron ? |
I would suggest asking in one of the community forums. There aren't that many people watching this issue tracker. |
Preflight Checklist
Issue Details
Expected Behavior
After Packaging, the app should open as it does while development. Or the electron-packager should warn/throw error in case anything is not appropriate.
Actual Behavior
The app packager successfully but gives an ENOENT error on opening it.
To Reproduce
I have tried a flat file structure (main, package, index all in parent folder). And also recommended file structure (src/main, index) . After the app is written is the specified folder. On opening the Application file, an error is shown - ENOENT : no such file or directory. open 'package.json'
Additional Information
The details of all the package.json and cli are as follows -
And the detailed error is -
The text was updated successfully, but these errors were encountered: