Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zengjianze opened this issue Jul 10, 2024 · 0 comments

Comments

@zengjianze
Copy link

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 = {
// type: 'object',
userPath: { type: 'string' }

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

but still encount the same error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant