Doctor 🤖
Doctor 🤖
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
DDeno
Created by Bloxez on 12/17/2024 in #help
Leaks Detected
The error message say you're opening a file. Do you know which file it's talking about?
7 replies
DDeno
Created by Bloxez on 12/17/2024 in #help
Leaks Detected
Can you show one of the tests that are leaking?
7 replies
DDeno
Created by Manik Islam Mahi on 12/6/2024 in #help
What is the difference between these two imports? And which one should I use?
If a package you use a lot is on npm and not jsr, you should encourage them to also publish in jsr.
13 replies
DDeno
Created by Manik Islam Mahi on 12/6/2024 in #help
What is the difference between these two imports? And which one should I use?
Not all packages published on deno.land/x has been moved to JSR. My recommendation would be to look for dependencies on JSR and if it isn't there then use NPM.
13 replies
DDeno
Created by Manik Islam Mahi on 12/6/2024 in #help
What is the difference between these two imports? And which one should I use?
With the compatibility layer, it is recommended to use npm: over deno.land/x imports as version dependency deduplication is possible.
13 replies
DDeno
Created by Manik Islam Mahi on 12/6/2024 in #help
What is the difference between these two imports? And which one should I use?
Sorry. I only noticed the { mongoose } and mongoose, not a different from string.
13 replies
DDeno
Created by Manik Islam Mahi on 12/6/2024 in #help
What is the difference between these two imports? And which one should I use?
The first one is importing a specific function called mongoose. The second is importing the default export and calling it mongoose.
13 replies
DDeno
Created by vicary on 12/6/2024 in #help
How to build WASM from Rust?
I'm pretty sure the wasm.js file is meant to handle importing and setting up the wasm_bg.wasm file and creating the functions to interact with it.
3 replies
DDeno
Created by wedmaniac on 11/30/2024 in #help
Parsing a fetch response resulting number turning into NaN
Or maybe there is an invisible character next to it screwing up the parsing
16 replies
DDeno
Created by wedmaniac on 11/30/2024 in #help
Parsing a fetch response resulting number turning into NaN
My only guess would be that it's not actually a 5 but some other character that looks like a 5
16 replies
DDeno
Created by wedmaniac on 11/30/2024 in #help
Parsing a fetch response resulting number turning into NaN
That does appear to be odd
16 replies