coty
coty
DDeno
Created by Agowan on 2/9/2025 in #help
deno install Omit/exclude dev dependencies from package.json
So I revisited this just now and everything is so nice. Here's my deno sveltekit project https://github.com/cotyhamilton/taylor-swift-lyrics Check that last PR for relevant changes, but yeah, using the deno.json and deno.lock are working great, how deno.lock handles the dependencies is really cool, it's using workspace feature to handle deps in both deno.json and package.json. And it looks like as long as they're the same version, for "prod" deps in deno.json, there's no duplication. Really cool! I also added a Dockerfile to test all this easily, but it is all working on deploy now! Yeah that's the github issue I mentioned, the last thing they're waiting on is rootDirs compiler option working in the language server. After that gets fixed I'm pretty sure we can strip out the package.json and tsconfig, and do sveltekit in a deno native way (after some extra config), and use deno lsp! This is another project to keep eye on for ideas https://github.com/trakt/trakt-lite/tree/main they have a deno monorepo with a sveltekit project in it. They've also been active in that issue
14 replies
DDeno
Created by Clintonn on 2/14/2025 in #help
I run "deno -A npm:drizzle-kit generate", deno hits me with "Cannot find module 'drizzle-kit'"
5 replies
DDeno
Created by BabyDP on 2/13/2025 in #help
deno task setup can't run on Windows 11.
The author configured that command to run a shell script. I’d suggest using WSL
4 replies
DDeno
Created by Agowan on 2/9/2025 in #help
deno install Omit/exclude dev dependencies from package.json
I think since your are building a container image you won’t have the same issues I do as you have more control over flags passed to the deno runtime
14 replies
DDeno
Created by Agowan on 2/9/2025 in #help
deno install Omit/exclude dev dependencies from package.json
There’s a pretty large sveltekit issue in deno repo where even svelte and related maintainers participate, things are continuously getting better
14 replies
DDeno
Created by Agowan on 2/9/2025 in #help
deno install Omit/exclude dev dependencies from package.json
I need to test again, but originally I had issues with including the lockfile (I’m deploying to deploy) so I don’t have it atm. It’s unfortunate but at least my prod dependencies don’t include hundreds other deps lol, so it’s okay for now I also have to be careful about which deps I use because if they use global node APIs it breaks (I’m using node adapter currently, node adapter doesn’t fix all the globals)
14 replies
DDeno
Created by Agowan on 2/9/2025 in #help
deno install Omit/exclude dev dependencies from package.json
I have a separate deno.json with my prod dependencies, and wrote a little post build adapter in the svelte config that copies that deno.json to the output directory to work around this
14 replies
DDeno
Created by lielmus on 2/9/2025 in #help
error: Relative import path "@std/http/file-server" not prefixed with / or ./ or ../
You can prepend with jsr: if you don’t want to deno add
4 replies
DDeno
Created by w7a9q on 11/3/2024 in #help
Zed Deno Support
I use deno and zed daily, there’s some configuration you have to do to disable the native js, ts, and some other language servers. And reload the editor after those config changes https://zed.dev/docs/languages/deno And here’s the config I use https://jsr.io/@cotyhamilton/zed-settings@0.1.5
2 replies
DDeno
Created by Wazbat on 10/27/2024 in #help
permission denied error when running deno install inside dockerfile
Seems like the deno user doesn’t have permissions in /app. Also seems like your lockfile is outdated, it shouldn’t be trying to write (there are flags that alter that behavior also)
5 replies
DDeno
Created by jradxl on 9/30/2024 in #help
Deno import use for local files?
For the import map, just makes things cleaner, even in your new example instead of that the import could be just from "library" or whatever you name it I just tried with deno’s file-server from @std/http and it’s all working. And that’s with content type being some weird video format lol, maybe deno doesn’t care
11 replies
DDeno
Created by jradxl on 9/30/2024 in #help
Deno import use for local files?
The web server should work, I would use the import map in deno.json. How are you running the server? What’s the MIME type of the typescript file response?
11 replies
DDeno
Created by ztraeshuxjmv on 9/1/2024 in #help
Deno memory usage in Docker Container is crazy high...?
When I ran your commands they both used around 1Mb of mem. I don't see how yours could utilize such high mem when the only process started was sh
➜ docker stats
CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS
542bf8aae8fc deno-sh 0.00% 268KiB / 2.574GiB 0.01% 746B / 0B 0B / 0B 2
e1d463642376 node-sh 0.00% 1.73MiB / 2.574GiB 0.07% 746B / 0B 1.7MB / 0B 1
➜ docker stats
CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS
542bf8aae8fc deno-sh 0.00% 268KiB / 2.574GiB 0.01% 746B / 0B 0B / 0B 2
e1d463642376 node-sh 0.00% 1.73MiB / 2.574GiB 0.07% 746B / 0B 1.7MB / 0B 1
9 replies
DDeno
Created by Sheik on 8/23/2024 in #help
Angular SSR Deno
process can be imported from node:process
21 replies
DDeno
Created by Hasan Rimawi on 7/31/2024 in #help
Deno Install <>
DENO_FUTURE=1 deno install --help
DENO_FUTURE=1 deno install --help
6 replies
DDeno
Created by 🎀𝔸ℕ𝔾𝔼𝕃 𝔻𝕆𝕃𝕃𝔽𝔸ℂ𝔼🎀🇵🇸 on 7/25/2024 in #help
Renders in dev mode (locally) but not on Deno Deploy
Seems like the build directory doesn’t exist, I can’t tell how you’re deploying but did you build or enter the build command on deploy?
10 replies
DDeno
Created by coty on 6/27/2024 in #help
How to detect if executing on main thread vs worker
Thank you, the helps a ton
4 replies
DDeno
Created by 🎀𝔸ℕ𝔾𝔼𝕃 𝔻𝕆𝕃𝕃𝔽𝔸ℂ𝔼🎀🇵🇸 on 6/27/2024 in #help
HTTPS imports in browser breaking stuff.
Everyone wants deno bundle back 😂
41 replies
DDeno
Created by coty on 5/21/2024 in #help
Debug deno deploy failures ISOLATE_INTERNAL_FAILURE
I figured out it's because I was trying to use the declarative server
export default {
fetch(request: Request) {
return app.fetch(request);
},
};
export default {
fetch(request: Request) {
return app.fetch(request);
},
};
4 replies