denoland / deno

A modern runtime for JavaScript and TypeScript.
https://deno.com
MIT License
94.67k stars 5.25k forks source link

deno install --unstable-kv don't work #22154

Closed thomas3577 closed 8 months ago

thomas3577 commented 8 months ago

Version: Deno 1.40.2

When I try to install an app that uses Deno.KV and then run it, I get the following error message:

Uncaught (in promise) TypeError: Deno.openKv is not a function.

Minimal example (main.ts):

await Deno.openKv();

Install

deno install --unstable-kv -n mycli ./main.ts

Run

mycli
error: Uncaught (in promise) TypeError: Deno.openKv is not a function
await Deno.openKv();
           ^
zefhemel commented 8 months ago

Yep, just noticed the same. Falling back to use --unstable for now (with a warning, but at least it works).