Doctor 🤖
Doctor 🤖
DDeno
Created by Big Band_it on 1/17/2025 in #help
If I dont have to explicitly install a node pacakge to use it how do I get intellisense?
That command is installing them
4 replies
DDeno
Created by Big Band_it on 1/17/2025 in #help
If I dont have to explicitly install a node pacakge to use it how do I get intellisense?
For intellisense to work you need a copy of it on your computer. Unlike node, if you're missing local copies of dependencies when you attempt to run the code, it will download them first.
4 replies
DDeno
Created by Joseph on 1/8/2025 in #help
Install a local deno package
Can you show both deno.json files?
11 replies
DDeno
Created by Joseph on 1/8/2025 in #help
Install a local deno package
What does the deno.json of @b/foo look like?
11 replies
DDeno
Created by ali ghamdan on 1/8/2025 in #help
Property 'document' does not exist on type 'Window & typeof globalThis'.
You should switch deno.window out with deno.ns if you have dom
4 replies
DDeno
Created by Joseph on 1/8/2025 in #help
Install a local deno package
Foo doesn't need to be actually published but the name and version do need to match.
11 replies
DDeno
Created by Joseph on 1/8/2025 in #help
Install a local deno package
Make sure the deno.json of foo has a matching version in your boo's imports.
11 replies
DDeno
Created by Joseph on 1/8/2025 in #help
Install a local deno package
Try
{
"name": "@a/bar",
"imports": {
"@b/foo": "jsr:@b/foo@0.1.0",
},
"patch": [
"~/Projects/foo/"
]
}
{
"name": "@a/bar",
"imports": {
"@b/foo": "jsr:@b/foo@0.1.0",
},
"patch": [
"~/Projects/foo/"
]
}
11 replies
DDeno
Created by Duncan on 1/6/2025 in #help
Migrating from Node to Deno
Does deno lint offer a way to fix the things it complains about?
5 replies
DDeno
Created by scarf on 12/25/2024 in #help
std JSON serializer/deserializer with Set and Map support
The @std/cbor package supports serialising maps but sets will need to be converted to an array first
6 replies
DDeno
Created by scarf on 12/25/2024 in #help
std JSON serializer/deserializer with Set and Map support
They dont have functions to serialise them to json but there are other serialisers to other formats.
6 replies
DDeno
Created by melkam on 12/18/2024 in #help
Unable to target browser and deno with unstable features in typescript `compilerOptions.lib`
I have to do a similar thing with ArrayBuffer.transfer until Deno updates the TypeScript version to 5.7
15 replies
DDeno
Created by melkam on 12/18/2024 in #help
Unable to target browser and deno with unstable features in typescript `compilerOptions.lib`
I think just casting it to type any would be easiest but you do you
15 replies
DDeno
Created by melkam on 12/18/2024 in #help
Unable to target browser and deno with unstable features in typescript `compilerOptions.lib`
When the lib option is empty deno.window is used which does have the .gpu since Deno supports it
15 replies
DDeno
Created by melkam on 12/18/2024 in #help
Unable to target browser and deno with unstable features in typescript `compilerOptions.lib`
(navigator as any).gpu
15 replies
DDeno
Created by melkam on 12/18/2024 in #help
Unable to target browser and deno with unstable features in typescript `compilerOptions.lib`
I think you'll just have to cast it to type any and do it without types
15 replies
DDeno
Created by melkam on 12/18/2024 in #help
Unable to target browser and deno with unstable features in typescript `compilerOptions.lib`
Like Deno.cron and kv
15 replies
DDeno
Created by melkam on 12/18/2024 in #help
Unable to target browser and deno with unstable features in typescript `compilerOptions.lib`
I'm pretty sure that just provides access to the unstable APIs in the Deno namespace
15 replies
DDeno
Created by melkam on 12/18/2024 in #help
Unable to target browser and deno with unstable features in typescript `compilerOptions.lib`
navigator.gpu doesn't have enough compatibility in the browser space to be included under the dom libs in TypeScript. https://developer.mozilla.org/en-US/docs/Web/API/Navigator/gpu#browser_compatibility
15 replies
DDeno
Created by Bloxez on 12/17/2024 in #help
Leaks Detected
Relative to the code
7 replies