marvinh.
marvinh.
DDeno
Created by Hasan Rimawi on 10/21/2024 in #help
Tags in lint config
Tags are sort of presets in the linter that enable a bunch of rules. There are currently two tags in Deno recommended and fresh.
3 replies
DDeno
Created by sylvesteraryee on 10/19/2024 in #help
npm:<package-name> not auto-installing by default.
Deno always installs packages automatically, unless you have a package.json in your project or have nodeModulesDir: "manual" in your deno.json
3 replies
DDeno
Created by SteveS on 10/18/2024 in #help
Cannot get TS to accept $lib import alias
Looks like the Deno extension isn't enabled for this particular project. Run the Deno: Enable command in the vscode command palette
7 replies
DDeno
Created by FatahChan on 10/18/2024 in #help
installing daisy ui with tailwind throws an error
Do you have a border-border class somewhere in your files?
6 replies
DDeno
Created by JayTZ on 10/17/2024 in #help
[React App Tutorial] Issue finding @oak & @tajpouria
Deno 2.0.2 is out and includes the fix. Does updating to that version resolve it? Deno releases can be followed here https://github.com/denoland/deno/releases
5 replies
DDeno
Created by Kas.st on 10/18/2024 in #help
Deno.readFile broken?
Unrelated: It looks like the goal of the script is to find and fix missing extensions in import paths. We have an unstable lint rule for that which might interest you:
deno lint --unstable-sloppy-imports path/to/files/or/folders
deno lint --unstable-sloppy-imports path/to/files/or/folders
It can also add the missing extensions by running:
deno lint --unstable-sloppy-imports path/to/files/or/folders --fix
deno lint --unstable-sloppy-imports path/to/files/or/folders --fix
12 replies
DDeno
Created by Kas.st on 10/18/2024 in #help
Deno.readFile broken?
Ah I see the issue. Your regex doesn't account for ansi escape codes. This is the file path I'm getting from the regex:
"/Users/marvinh/dev/test/deno-readfile/datalayer/mod.ts\x1b[0m"
"/Users/marvinh/dev/test/deno-readfile/datalayer/mod.ts\x1b[0m"
12 replies
DDeno
Created by Kas.st on 10/18/2024 in #help
Deno.readFile broken?
Thanks for sharing. I assume the file you want to read is relative to that script at ./datalayer/mod.ts?
12 replies
DDeno
Created by Kas.st on 10/18/2024 in #help
Deno.readFile broken?
Can't reproduce that on my end, regardless of passing relative or absolute paths. What I tried: 1. Create a new project with deno init 2. Replace contents of main.ts with
const content = await Deno.readFile("./deno.json");
console.log(content);
const content = await Deno.readFile("./deno.json");
console.log(content);
3. Run deno run -A main.ts
12 replies
DDeno
Created by Kas.st on 10/18/2024 in #help
Deno.readFile broken?
I find that for finding path issues it often helps to log out Deno.cwd() to see if my assumptions with relative paths is correct. You can also use import.meta.dirname to construct absolute paths from the current file
12 replies
DDeno
Created by Kas.st on 10/18/2024 in #help
Deno.readFile broken?
Looks like the filepth is wrong. It's looking for a file at:
/secretproject/frontend/datalayer/datalayer/core/rest/index.ts
/secretproject/frontend/datalayer/datalayer/core/rest/index.ts
Is this the correct path?
12 replies
DDeno
Created by JayTZ on 10/17/2024 in #help
[React App Tutorial] Issue finding @oak & @tajpouria
This is a bug in Deno. The fix has already landed in main and we'll cut a new release soon
5 replies
DDeno
Created by elee on 10/14/2024 in #help
how to add a code generation hook pre-build in fresh
There is no way in Deno to get the file that triggered a --watch change, unless you do the whole watching on your own
8 replies
DDeno
Created by nl7 on 10/17/2024 in #help
Deno + TSServer weirdness
Hey, thanks for trying out Deno. Rest assured we're very aware of these issues with our LSP interacting with the built-in tsserver in vscode. It's something we're keen to work on now that Deno 2 is out.
3 replies
DDeno
Created by Alister on 10/17/2024 in #help
How to import library in Edge Function ?
Just import them like you would normally. With Deno 2 npm support pretty good which means you don't need to go to alternative registries like esm.sh.
4 replies
DDeno
Created by Erdem on 10/7/2024 in #help
deno bindgen doesnt work
Might be worth filing an issue for that. There are much more eyes on that, compared to here https://github.com/denoland/deno/issues/new/choose
6 replies
DDeno
Created by Gi on 10/16/2024 in #help
lookupService is not a function
Looks like a bug. I've filed an issue for that https://github.com/denoland/deno/issues/26300
3 replies
DDeno
Created by Dawson on 10/15/2024 in #help
Performance concerns for docker engine hosting company
Similiar to bun we do have issues in our issue tracker. You can gather the compatibility status by doing a quick search in our issue tracker for the packages you intend to use. Regarding Bun.env you can easily switch to process.env which works in all three runtimes (Deno, Node, Bun)
6 replies
DDeno
Created by HudsyWudsy on 10/15/2024 in #help
Errors in boilerplate code?
It sounds like you're have moduleResolution: "node" set in your tsconfig.json. This setting is only for users on Node 10.x or older (Node is at 20.x by now). It's pretty much always the wrong setting there. Instead you should change it to "bundler" like the error message hints at
3 replies