electron-userland / electron-json-storage

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

missing module after building in vue #169

Open gruen1988 opened 2 years ago

gruen1988 commented 2 years ago

after building with vue-cli-plugin-electron-builder this error appears:

Uncaught Error: Cannot find module 'electron-json-storage' Require stack:

  • electron/js2c/renderer_init

i use electron v.13.0.0 and vue-cli-plugin-electron-builder 2.1.1

jviotti commented 2 years ago

Hey @gruen1988 ,

The issue sounds more related to vue-cli-plugin-electron-builder than to electron-json-storage. For some reason, the module is not in the path, or such electron builder is trying to find the module in another path.

Do you have a fully-reproducible example we can take a look at?