Giter VIP home page Giter VIP logo

Comments (5)

sindresorhus avatar sindresorhus commented on June 3, 2024

You need to use the delete() method, not the delete keyword.

from electron-store.

2811267153 avatar 2811267153 commented on June 3, 2024

In fact, I used thedelete()method at the beginning, but it still reported an error, which is why I used the delete keyword, but it still reported an error
image

I encountered this exception twice last night. The first time was because I had a problem storing the data in songHistoryListData. I thought it was because the data I stored was too large, so I put it in my debugging code first. After clearing the list and storing the data, there is no error, but the list should be empty now, I don't know how this exception is triggered,

from electron-store.

Coldplayer1995 avatar Coldplayer1995 commented on June 3, 2024

This should not be closed had the same issue, and this is happening also when you try to set undefined value.

from electron-store.

arepp23 avatar arepp23 commented on June 3, 2024

+1 this happens when you try to set a boolean false value

from electron-store.

zprjk avatar zprjk commented on June 3, 2024

This should not be closed had the same issue, and this is happening also when you try to set undefined value.

I got the same problem. Had to add a safeguard but the error makes sense since electron-store uses json to store data, undefined is not a valid syntax in JSON. The error output mentioned above didn't help tho.

from electron-store.

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.