electron-json-storage
electron-json-storage copied to clipboard
Error: Cannot read property 'match' of undefined
Hi there, I'm trying to use electron-json-storage, but I'm getting this error in the console:
Uncaught TypeError: Cannot read property 'match' of undefined
at patch (webpack-internal:///./node_modules/graceful-fs/polyfills.js:31)
at patch (webpack-internal:///./node_modules/graceful-fs/graceful-fs.js:104)
at Object.eval (webpack-internal:///./node_modules/graceful-fs/graceful-fs.js:96)
at eval (webpack-internal:///./node_modules/graceful-fs/graceful-fs.js:356)
at Object../node_modules/graceful-fs/graceful-fs.js (chunk-vendors.js:1973)
at __webpack_require__ (app.js:849)
at fn (app.js:151)
at Object.eval (webpack-internal:///./node_modules/write-file-atomic/index.js:7)
at eval (webpack-internal:///./node_modules/write-file-atomic/index.js:240)
at Object../node_modules/write-file-atomic/index.js (chunk-vendors.js:4386)
Package Version: 4.2.0 OS: Ubuntu 20.04 (Linux 5.4.0-48-generic) Electron: 9.3.1
What can I do to avoid this error?
Thank you for your help!
Hi @TiagoSilvaPereira,
Thanks for reaching out, and sorry for the delay!
Can you share your WebPack configuration here? I'm under the impression that there is something in WebPack messing up with this module. Can you also try running your project without making electron-json-storage go through WebPack?