nathanbuchar / electron-settings

📝 A simple persistent user settings framework for Electron.
https://electron-settings.js.org
MIT License
814 stars 60 forks source link

circular reference #154

Closed jlatsko closed 3 years ago

jlatsko commented 3 years ago

Getting the following compiler error

LM-test-settings-4.0/node_modules/electron-settings/dist/settings.d.ts(72,14): error TS2456: Type alias 'SettingsValue' circularly references itself.

Any idea for solving this?

Here is my tsconfig.json

{ "compileOnSave": true, "files": [ "./src/*/.ts" ], "compilerOptions": { "target": "es5", "module": "commonjs", "sourceMap": true, "outDir": "app", "rootDir": "src" } }

jlatsko commented 3 years ago

My apologies: the above project's typescript compiler is version 3.4.2. Once I updated to 4.2.2 the compiler error no longer appeared.