w7a9q
w7a9q
DDeno
Created by w7a9q on 11/3/2024 in #help
Zed Deno Support
No description
2 replies
DDeno
Created by w7a9q on 11/2/2024 in #help
Cannot run Nitro project
I have created a new Nitro project using deno run -A npm:giget@latest nitro nitro-app --install. It was successfull but after trying deno run dev I get an error saying:
error: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'pathname')
at getPathname (ext:deno_node/_fs/_fs_stat.ts:177:49)
at ext:deno_node/_fs/_fs_stat.ts:151:13
at eventLoopTick (ext:core/01_core.js:175:7)
error: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'pathname')
at getPathname (ext:deno_node/_fs/_fs_stat.ts:177:49)
at ext:deno_node/_fs/_fs_stat.ts:151:13
at eventLoopTick (ext:core/01_core.js:175:7)
Is there any fix for that or is it a bug in Deno itself?
8 replies
DDeno
Created by w7a9q on 11/1/2024 in #help
Deno runs the whole script instead of the method
I have following test:
import { expect } from "jsr:@std/expect";
import { validateInput } from "./webp.ts";

Deno.test("invalid input", () => {
const fn = validateInput;
const result = fn('/root', 55);
expect(result).toThrow();
});
import { expect } from "jsr:@std/expect";
import { validateInput } from "./webp.ts";

Deno.test("invalid input", () => {
const fn = validateInput;
const result = fn('/root', 55);
expect(result).toThrow();
});
When I run deno test it runs the whole webp.ts script instead of just the validateInput() method.
4 replies
DDeno
Created by w7a9q on 10/21/2024 in #help
Create SvelteKit project with Deno
Hey, how do I create SvelteKit project with Deno? Docs recommends this command: npx sv create myapp How does a Deno command doing this looks like?
3 replies
DDeno
Created by w7a9q on 9/28/2024 in #help
Corepack
Hey, does Deno support Corepack?
9 replies