Skip to content
Discussion options

You must be logged in to vote

Add the following configuration to compilerOptions in tsconfig.node.json

"module": "NodeNext",
"moduleResolution": "NodeNext"

Add the following content to package.json

"type": "module"

But this forces you to use esm and requires you to use elecctron 30 and higher. It is recommended that you use electron-conf, which is another electron-store.

  • Minimal and simple
  • Read data form disk once, ~100x faster
  • Simpler migration strategy
  • Safer to use it in Electron renderer (no nodeIntegration)
  • Written in TypeScript, and support CommonJS and ESM. For Electron 15.x and higher.

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
4 replies
@BrendanC23
Comment options

@deadcoder0904
Comment options

@alex8088
Comment options

@deadcoder0904
Comment options

Answer selected by igorlanko
Comment options

You must be logged in to vote
4 replies
@deadcoder0904
Comment options

@agarny
Comment options

@BrendanC23
Comment options

@alex8088
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants