deploy error - TypeError: Deno.openKv is not a function
Deno.* APIs
Hi, I am taking a SQL class which also uses DENO - needless to say, this is my first experience with DENO.
I am using a main.ts script (from https://github.com/csev/deno-kv-admin/blob/main/main.ts) and when I run deploy (from the playground) I get the following error message: TypeError: Deno.openKv is not a function at file:///app/src/main.ts:7:23
error: Uncaught (in promise) TypeError: Deno.openKv is not a function const kv = await Deno.openKv(); ^ at file:///app/src/main.ts:7:23
info: Deno.openKv() is an unstable API. hint: Run again with --unstable-kv--unstable-kv flag to enable this API.
TypeError: Deno.openKv is not a function at file:///app/src/main.ts:7:23
1. where do I run the hint ( hint: Run again with --unstable-kv--unstable-kv flag to enable this API.)??? It may be clear to you, but it sure isn't to me 2. Would using the old environment ("classic" which can be used until June 25 this year) make a difference? How do I even get to it? It showed when I first entered, but is not now... 3. Could someone explain to me what is going on?
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
D
Deno
Chat about Deno, a modern runtime for JavaScript and TypeScript.