electron-userland / electron-json-storage

:package: Easily write and read user settings in Electron apps
1.44k stars 80 forks source link

issue with webpack and UglifyJs #53

Closed ackvf closed 7 years ago

ackvf commented 7 years ago

I am getting this error when trying to import the library in electron main process. Same with importing or requiring. Not sure what else I can do to help specifying the issue.

... gutil.PluginError('webpack', buildError)

Error: electron/app/main.js from UglifyJs
Unexpected token: name (args) [./~/cb2promise/index.js:7,0]
jviotti commented 7 years ago

This looks like a webpack/uglify issue rather than an issue with this module. Does the error still happen if you disable uglify?

jviotti commented 7 years ago

I got to the bottom of this issue, and solved it on 3.0.4. Check https://github.com/jviotti/electron-json-storage/issues/57