D
Deno

help

Property 'openKv' does not exist on type 'typeof Deno'. VSCode

HHiro4/26/2023
Such as the title say, I cant get the LSP to recognize openKv in the Deno namespace... deno 1.32.5+78b630d (canary, x86_64-apple-darwin) v8 11.2.214.15 typescript 5.0.3 Any idea ?
CcrowlKats4/26/2023
do you have unstable enabled?
UUUnknown User4/29/2023
Message Not Public
Sign In & Join Server To View
ABAltair 680b4/29/2023
I've notice that that is not enough. I have use the --unstable flag in the deno run cli command.
EEthanThatOneKid4/30/2023
I can't access any unstable APIs in VSCode either. Even with the suggested .vscode/settings.json settings.
# deno --version
deno 1.33.1 (release, x86_64-pc-windows-msvc)
v8 11.4.183.1
typescript 5.0.3
# deno --version
deno 1.33.1 (release, x86_64-pc-windows-msvc)
v8 11.4.183.1
typescript 5.0.3
Are there any other places to enable unstable? I have unstable enabled in VSCode, but the same error is still there. @crowlkats is it possible this is a Windows problem?
IioB4/30/2023
I'm experiencing the same thing but on mac os
ABAltair 680b4/30/2023
No issue here on Windows. try refreshing deno lsp by ctrl+shift+p then Deno: Initialize Workspace I've used that in past to clear such issues.
UUUnknown User5/1/2023
Message Not Public
Sign In & Join Server To View
ABAltair 680b5/1/2023
What version of Deno are you running?
ts
deno -V
ts
deno -V
How were you able to modify the extension? Not a good idea IMHO
UUUnknown User5/1/2023
2 Messages Not Public
Sign In & Join Server To View
ABAltair 680b5/1/2023
Are you sure deno is enabled in the project, It is not enough to just have the /.vscode/settings.json , you must open the Command Pallet (Ctrl+Shift+P), and run the Deno: Initialize Workspace Configuration If it is initialized, you should see Deno 1.33.1 at the far right bottom status-bar in VSCode.
UUUnknown User5/1/2023
Message Not Public
Sign In & Join Server To View
ABAltair 680b5/1/2023
Can you run the code with deno run -A --unstable yourmodname.ts. ? Sometimes a successful run will refresh the cache. What is missing is lib.deno.unstable.d.ts
EEthanThatOneKid5/1/2023
GitHub
vscode errors: Deno.open, Deno.read, Deno.close: Property 'open' do...
Hi, Recently (as of today, after installing the latest deno version using Homebrew on my mac) Im getting errors in the "problems" tab. These are new and didn't get them before. The pr...
UUUnknown User5/1/2023
3 Messages Not Public
Sign In & Join Server To View
ABAltair 680b5/1/2023
It should have populated automatically with the deno: unstable = true setting.
UUUnknown User5/1/2023
Message Not Public
Sign In & Join Server To View
ABAltair 680b5/1/2023
In the cache. I think this is related https://github.com/denoland/deno/issues/18907
GitHub
vscode errors: Deno.open, Deno.read, Deno.close: Property 'open' do...
Hi, Recently (as of today, after installing the latest deno version using Homebrew on my mac) Im getting errors in the "problems" tab. These are new and didn't get them before. The pr...
UUUnknown User5/1/2023
Message Not Public
Sign In & Join Server To View
EEthanThatOneKid5/2/2023
Should we wait to roll forward?
UUUnknown User5/2/2023
4 Messages Not Public
Sign In & Join Server To View
IioB5/2/2023
It's quite strange, in one project I don't get this error and in another I do.
UUUnknown User5/2/2023
3 Messages Not Public
Sign In & Join Server To View
IioB5/2/2023
weird, I’ll try that
UUUnknown User5/2/2023
5 Messages Not Public
Sign In & Join Server To View
EEthanThatOneKid5/3/2023
I cannot believe that simply removing the dependency I had on Sift actually fixed the problem! Thank you for looking into this for us!! I used code from the old Deno Deploy Discord Application Command tutorial which had Sift.
UUUnknown User5/3/2023
Message Not Public
Sign In & Join Server To View
EEthanThatOneKid5/3/2023
Deno.Kv + Discord Application Commands = ❤️
HHiro5/7/2023
This is still not fixed on latest Canary version, the LSP randomly doesnt recognize OpenKV...
HHiro5/7/2023
i was working with it without any problem all morning but now its gone
HHiro5/7/2023
Openned this issue for tracking https://github.com/denoland/deno/issues/19035
GitHub
Property 'openKv' does not exist on type 'typeof Deno'. VSCode · Is...
I am oppening this issue here since this has been recurrent on Discord, as of latest Canary build I am still unable to get the LSP to recognize the method on the Deno namespace. And of course, my V...
IioB5/7/2023
yeah not really sure what’s going on here oh nice

Looking for more? Join the community!

Recommended Posts
Import from direct URL works fine, but NOT via deps.ts``` // ./lib/foobar1.ts // everything is fine import { z } from "https://deno.land/x/zod@v3.21.4/modSmall Deno Script to upload to my server not working due to not being able to be run on CentOSAll my clients run Ubuntu or Debian, and the script will not run on CentOS due to the problem of a GEmpty output in Deno.CommandI’m trying to run the command `git log —grep='.'` from Deno. However, it always returns an empty outPreventing `Deno.stdin` reads from blockingIn a module for reading `Deno.stdin` input, there is a loop that reads and parses the returned bytesCan I pre-cache dependencies that I specify using npm:?Hi! Trying to figure out the right way to combine Deno's module support to make our deploys consisteJSON Schema Core, $dynamicAnchor, and $vocabularySlightly off-topic, but I'm writing a Deno library. Anyone deeply knowledgeable on JSON Schema CoreTest case is leaking resourcesHi, all my tests keeps failing because of ```json error: AssertionError: Test case is leaking 2 reso[have workaround] "deno" and "deno repl" aren't producing outputI typed in "deno" and nothing happened, and I thought it was finally doing the right thing when no aServe Fresh over HTTPS locallyHow can I serve Fresh over HTTPS locally? In node I might generate certs and do ``` https.createSercli/tsc crashes with Uncaught TypeErrorUsing latest Deno (1.32.4), this only happens on certain files, but it effectively means that I cannFresh: <Head> component is not supportedWhen running `deno task start` with this as my `pages/index.tsx` file (as in the demo) I'm seeing tIs there a way to vendor npm specifier imports?> deno vendor npm:express > Vendored 0 modules into scripts/vendor directoryHow can I import with npm: specifiers through a proxy?My company blocks npmjs.com and they have setup an internal Artifactory instance. With nodejs I can Import modules from all files in directoryConsidering I have multiple ts files in a folder and all of them export the same type module. Can I Parsing Apache mime.types into dictionary Record<string, string>This code parses the official Apache `mime.types` from GitHub and creates a dictionary `Record<strinProvide own default error page in FreshHello! I'm seeing the following error ```pragma cannot be set when runtime is automatic at https:/Smoother DX using 3rd party modules written in TypeScript in the BrowserSay, for instance, I want to use the "async" standard library's Deferred implementation in some codegrpc / http2 / https in fresh.please a correct way to use grpc / http2 / https in fresh.Importing local Node.js modulesI have a local Node.js/TS package in local directory `/foo/bar/leet/package.json` – Is there any wayServer Sent Events with FreshHi! I am trying to use Server Sent Events (SSE) with fresh. I understand I should have an island tha