Electron app with Angular.js: Uncaught TypeError when using electron-store for storage

I am building an electron app with Angular.js. Here I am doing electron storage. But when I built it it always gives me some errors. which are

  1. “Uncaught TypeError: Cannot define property parameters, object is not extensible”
  2. at Function.defineProperty ()
  3. at a (main.14acdcbc49c5dc9c.js:1:354996)
  4. at 5629 (main.14acdcbc49c5dc9c.js:1:1923787)
  5. at a (runtime.874a5b2956b8256a.js:1:128)
  6. at main.14acdcbc49c5dc9c.js:1:2184662
  7. at o (runtime.874a5b2956b8256a.js:1:1030)
  8. at main.14acdcbc49c5dc9c.js:1:93

I have tried several things but it’s not working still. I have fixed all the linter errors & type errors too. It should work. But if I remove the electron storage related functionalities the build process works. Can anyone solve my issue?