Deno

D

Deno

Chat about Deno, a modern runtime for JavaScript and TypeScript.

Join

How to resolve an import statement in Deno

Hi, I am testing out Deno, but cannot get it to resolve imports. For example, how would I get Deno to resolve this import statement... import { readFileTxt } from '@root/db_fs/src/utilReadFiles'; ...

Workspaces issue: Error running deno run dev command while starting Oak server

Error running an Oak backend server which imports shared packages server lib I've created. ```cmd Watcher Process started. error: Could not find a matching package for 'npm:path-to-regexp@6.2.1' in a package.json file. You must specify this as a package.json dependency when the node_modules folder is not managed by Deno....

Loading hybrid packages from npm (graphql-tag)

i am currently trying to get dagger.io to run using deno and i am currently hitting this import issue:
error: Uncaught SyntaxError: The requested module 'graphql-tag' does not provide an export named 'gql'
at <anonymous> (file:///Users/igl/Library/Caches/deno/npm/registry.npmjs.org/@dagger.io/dagger/0.12.6/dist/index.js:3:10)
error: Uncaught SyntaxError: The requested module 'graphql-tag' does not provide an export named 'gql'
at <anonymous> (file:///Users/igl/Library/Caches/deno/npm/registry.npmjs.org/@dagger.io/dagger/0.12.6/dist/index.js:3:10)
...

Several commands at once

``ts const command = iptables -F iptables -X ...and more more more......

Deno Workspace Not Functioning in .svelte Files

Description I am using Deno's monorepo feature to share modules between the backend and frontend of my project. I’ve set up the following directory structure (omitting some files for brevity): ```...

@deno/emit's transpile with JSR

Do I miss something or @deno/emit don't work with JSR? I am trying to do JSX DOM Client Component, hono/jsx/dom, not just hono/jsx which is SSR. I'm also surprise this emit package is not in @std but in a strange @deno, its legit? server.tsx...

Get HTTP timings with deno fetch api

Hello! I was wondering if it is possible to get http timings for a given fetch request. (Something along the lines of PerformanceResourceTiming api)

Deno.createHttpClient only available with --unstable ?

--unstable will be removed in Deno 2, so how could I use Deno.createHttpClient in Deno 2 ?

Binary files in jsr package

Hey I am currently trying to understand the β€žnewβ€œ (for me) package format (jsr.json) for Deno packages and I was wandering how binary files are handled in such a package when using the package. For example if I have a DLL file for my ffi module can I just include it in the include statement inside the jsr.io file so that it gets cached when I use the package? Or do I need relay on a library like plug that downloads non ts/js files that I need?...

Import from "@std/yaml/parse" or "@std/yaml" throwing relative path error.

I'm using the example on this Standard Library page: https://jsr.io/@std/yaml/doc/~/parse ``` import { parse } from "@std/yaml/parse"; import { assertEquals } from "@std/assert";...

Lock file does not have any hashes of modules

Hello everyone. I need your help. I'm trying to generate deno.lock by using command ↓ in Mac. (Deno 1.46.1)
deno cache --lock=deno.lock --frozen=false -c=deno.json function/mod.ts
deno cache --lock=deno.lock --frozen=false -c=deno.json function/mod.ts
...
No description

Deno.zip not found

I'm trying to install deno using powershell with command "irm https://deno.land/install.ps1 | iex" but it says that deno.zip is not located, can somebody help me out?
No description

Compiled app binary.rs main thread panicked

I have compiled a small test application with version 1.45.5 of Deno. The application is just a demo. ```ts export function add(a: number, b: number): number { return a + b }...

Sharp using deno deploy

hello, is sharp compatible with deno deploy? in the npm page says it is, i tried deno in local and it works perfectly, but when i try to upload to deno deploy i get this error ```bash UNCAUGHT_EXCEPTION Error: Could not load the "sharp" module using the linux-x64 runtime...

Kv setting and getting from different files.

Do I do await Deno.openKv() in every file or how do I handle setting and getting from different files?

Angular SSR Deno

I'm trying to run Angular ssr with Deno, but I get the following error. deno run -A dist/deno-angular/server/server.mjs error: Relative import path "fs/promises" not prefixed with / or ./ or ../ If you want to use a built-in Node module, add a "node:" prefix (ex. "node:fs/promises")....

Deno KV performance within Deno Deploy Platform (Free Tier)

I am using deno kv and during testing found that the performance is significantly slower when deployed to deno (standard - free tier), when running locally I get 1 msec responses to get/set, where as the deployed instance this is 100msec (total keys in DB is very limited, e.g. < 10). Is this a limitation to the Free Tier or is this to be expected in all Deploy Tiers? I do not see anything on the pricing page that would indicate performance differences.
Has anyone experience with this? ...

jsdoc `@import` ignored by `deno check` but not by LSP

This code displays an error correctly in VSCode: ```js /** * @import { And } from "@pumpn/type-party";...