`.svelte` file intellisense can't properly resolve imports in a Deno only project
shared
member which in the deno.json
has "name": "@scope/shared"
- a client
member which is Vite+Svelte and only uses Deno (no package.json
)
everything works and builds perfectly fine however:..."window" global issues using the p5.js library in a Deno / Fresh project
Resolving Dependencies for Local ESM NPM Packages in Deno
fix library version of a dependency
deno.json
```json
{
"imports": {
"gcp-metadata": "npm:gcp-metadata@6.1.0"...Is it a good idea to use Deno edge functions as a websocket server?
deno install Omit/exclude dev dependencies from package.json
deno build
(to pre render my sveltekit app) and cd build && deno index.js
works like a charm. However, I also have some api routes that use npm packages.
Everything works fine when running locally.
But when I build my Docker image, I would like to install only the needed dependencies (those under dependencies). I don’t need the devDependencies
, such as lints and types. In npm, I would use --omit=dev
(I believe Bun has a similar flag).
Is there a way to exclude devDependencies
when running deno install
...error: Relative import path "@std/http/file-server" not prefixed with / or ./ or ../
Module not found "https://glfw-binaries.deno.dev/3.4.0-patch1/glfw3_darwin.js"
Deno TLS
Deno
object which are startTls
, listenTls
, and connectTls
, but I'm not sure how can I start a server that listens for HTTP requests, and connects using Tls to the client, I must admit I know less of the TLS than the HTTP protocol, any example on how can I do that?API server with Postgres on Deno Deploy ConnectionParamsError
ConnectionParamsError: Missing connection parameters: database at assertRequiredOptions (https://deno.land/x/postgres@v0.19.3/connection/connection_params.ts:250:11)...

I cannot make deno exclude dist/ directory
dist/
directory from formatting but couldn't. I tried the exclude
and fmt.exclude
fields in deno.json
and tried different values—dist
, dist/
, dist/*
—but nothing worked. Every single time I run deno fmt
(in the same directory where my deno.json
is), I see that the files in dist/
directory are also formatted.
It's not a dealbreaker but being unable to get something so small and simple is quite annoying. Is this a bug or am I doing something wrong? Thanks!...Writing a script to check which process is locking a file on Windows?
fs
package stood out, but it doesn't provide any functions that may be relevant. ...loadEnvFile
Compiled executable fails to run as service
deno run service.ts
, but it immeadiatly fails to start if compiled with deno compile service.ts
and the .exe is added to the servicehow to use .ts files (or their compiled .js equivalents) in the browser?
Fresh defer load
Loading ...
message there.
The thing, how can I do it with fresh? In other frameworks, I could just return a promise and it would just defer for me, or the usage of some kind of a suspense would do that, but I haven't seen anything on the docs about defer load or returning a promise from the loader. Is there just no conventional way of doing it? Do I need to do it the "old" way (create an api endpoint, return the data, call fetch on an island and pray it works)?...Workspace - container per app?
VS Code Deno formatter doesn't read deno.jsonc
Build and bundle TS into JS