Giter Club home page Giter Club logo

Comments (4)

alexiusacademia avatar alexiusacademia commented on June 26, 2024 2

This has been fixed now. You may use the latest version 0.11.1. The bug was when using the fs and the one as stated above. Now replaced by reading the package.json by importing it directly and using the name property which should be provided.

from electron-db.

alexiusacademia avatar alexiusacademia commented on June 26, 2024

Hello rafaelvaloto, sorry for the late reply. It's been a busy week for me.

As for your issue, I haven't worked with asar yet from the past but I will be looking at it this coming week and hopefully make a solution for your problem soon.

from electron-db.

dipeshparashar avatar dipeshparashar commented on June 26, 2024

I Confirm the issue mentioned above . Please fix it at the earliest if possible. I am not sure what will be the best replacement of Electron-DB in my current project.

from electron-db.

rafaelvaloto avatar rafaelvaloto commented on June 26, 2024

I Confirm the issue mentioned above . Please fix it at the earliest if possible. I am not sure what will be the best replacement of Electron-DB in my current project.

@dipeshparashar ,
You can temporarily fix this in the node_modules/electron-db /index.js file of the electron-DB package, comment out the lines and manually adding a name in the var appName
let appName = 'NameApp';
/* if (JSON.parse(fs.readFileSync('package.json', 'utf-8')).productName) { appName = JSON.parse(fs.readFileSync('package.json', 'utf-8')).productName; }else{ appName = JSON.parse(fs.readFileSync('package.json', 'utf-8')).name; } */

And recompiling your app again ...

from electron-db.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.