electron-store icon indicating copy to clipboard operation
electron-store copied to clipboard

SyntaxError: Bad control character in string literal in JSON at position 3

Open zengjianze opened this issue 7 months ago • 0 comments

Hi, I am use electron-store, version 8.2.0 with node version v18.19.1 when I use follow code: const store = new Store(); it will give me follow error: SyntaxError: Bad control character in string literal in JSON at position 3

I also try other way like `const schema: Schema<SchemaData> = { // type: 'object',
userPath: { type: 'string' }

            };
            const store = new Store<SchemaData>({ schema });`

but still encount the same error

zengjianze avatar Jul 10 '24 07:07 zengjianze