hashrock / kivi

Deno KV Explorer for VSCode
https://kivi-kv-editor.studio.site/
MIT License
42 stars 0 forks source link

The explorer crashes when there are any `bigint` values #6

Open dahlia opened 7 months ago

dahlia commented 7 months ago

The explorer crashes with the following error message when there are any bigint values in the KV database:

2024-02-25 16:20:10.717 [error] Error: Failed to list items: Do not know how to serialize a BigInt
    at g.value (/Users/dahlia/.vscode/extensions/hashrock.deno-kv-admin-0.0.5/out/kv/webview.js:101:23)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

The error message apparently is thrown by JSON.stringify():

> JSON.stringify(1n)
Uncaught TypeError: Do not know how to serialize a BigInt
    at JSON.stringify (<anonymous>)
    at <anonymous>:1:27