Skip to content
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

Error: Cannot read property 'match' of undefined #146

Open
TiagoSilvaPereira opened this issue Sep 30, 2020 · 1 comment
Open

Error: Cannot read property 'match' of undefined #146

TiagoSilvaPereira opened this issue Sep 30, 2020 · 1 comment

Comments

@TiagoSilvaPereira
Copy link

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!

@jviotti
Copy link
Member

jviotti commented Oct 5, 2020

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants