Deno

D

Deno

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

Join

How can I add tailwindcss to a deno/vite/solidjs project?

Saw this article: https://deno.com/blog/build-solidjs-with-deno, but I want to add tailwindcss to this configuration. I tried this article from tailwind; https://tailwindcss.com/docs/guides/vite. But when i apply tailwind classes to any html elements it does nothing.

Expose package scripts

Hey, I'd like to run a script which is in one of installed packages. Something like (fake syntax) deno amazingFramework list. Where list is the script and amazingFramework is name of package. Node deals with that with bin in package.json and .bin directory. Is it possible to do similar thing in deno?...

Start Data Science Channel

I think Deno with Jupyter has a lot of potential to drive data science. To promote its adoption and sharing of ideas, I propose that we create a dedicated channel for this topic. Please let me know if you agree, and if so, what the next steps should be. Thanks

Import local package in sub folder workspace

Hello! I'm trying to understand how the workspace/local imports work. I've managed to follow along with the simple add/substract example from the docs. But I have another folder structure than this in my project. Imagine something as follows: ```js root...

Use `npm run` in a Deno task

I'm in a monorepo where I'm using Deno workspaces, but one of the projects in my repo needs to run with Node and be excluded from the workspace (it's an Expo app). I have a task in my deno.json which is cd app && npm run dev but when I run that with deno task dev:app it gives me the error Config file must be a member of the workspace. It's like Deno takes over for npm, which is not what I want. How can I make this task use actual npm without Deno interfering?

deno.lock conflict, dispite no visible deno.lock file

I swear I don't have aa deno.lock file. Even attempting to run ```sh deno clean deno check https://esm.sh/@msgpack/msgpack@2.8.0...

Property 'document' does not exist on type 'Window & typeof globalThis'.

actually i know this is normal because its a backend not a frontend, but i'm using linkedom (parse html into DOM) so when i use it, this error occurs, when i run the code it works 100%, but this error from the vscode extension after enabling deno the code: ```typescript import { parseHTML } from "linkedom"; ...

Install a local deno package

I want to use a local deno package as a dependency in a second local deno package, and I don't want to include the first package's imports as dependencies of my second package. To spell it out, say I am developing a local package foo located at stuff/foo/deno.json which has a few imports from jsr, npm, etc. Now I have another project stuff/bar/deno.json and the file stuff/bar/main.ts contains import * from "foo"....

Deno, Sveltekit and adapter node build issue (+DuckDB)

Wondering if this is a SvelteKit/Rollup or Deno or DuckDB-WASM issue. My build errors due to missing "node:" specifiers. If I add those manually (i.e. go into the build files and add node: specifiers) it all works. Is this an issue with SvelteKit, with Deno or with DuckDB? Screenshot is the unadjusted build....
No description

import yaml directly in Deno

In Node.js, you can use yml-register to make import yaml files directly possible. May I achieve this in Deno? Or will it be planned to be supported in Deno?...

JSDoc inline import with Deno LSP does not find or apply type from npm package

Hello! When using the Deno LSP (tested in both VSCode with Deno for VSCode v3.43.2 and neovim with coc-deno 3.15.0), JSDoc imports from npm packages are not working. In the same project before initializing the Deno LSP, everything is found and functional with tsserver. I'm running Deno 2.1.3-1 on Arch Linux, kernel 6.6.63-1-lts...

Issuing Deploy certificates for custom domains with Terraform

Hello I am having some issues when it comes to provisioning certifcates on Deno Deploy through Terraform. The certificates was provisioned successfully - but I have no clue on how to actually assign the deno_domain resource to a deno_deployment or deno_project. Any ideas?...
No description

Migrating from Node to Deno

I have been tasked with researching the feasibility of migrating our react/nextjs app from node/npm to deno. I have done the following so far: 1) Cloned the repo 2) deno install 3) deno task dev...

deno publish / slow type

When I try to publish a package on JSR, I have the foolowing error ``` TS2304 [ERROR]: Cannot find name 'down'. */ export const transformScale = (...[monetaObject, newScale, divide = down]: TransformScaleParams): Moneta =>({} as never);...

Error logging into deno deploy dashboard with github

I try to open the deno dashboard, after clicking the continue with github button, but I am presented with an error everytime: ``` { "code": "internalServerError", "message": "An internal server error occurred."...

Newbie question: Web development in Deno 2, and .ts to .js transpiling.

How do you web-develop in Deno 2? I have html files, which load .js files, which are - manually - transpiled .ts files (via a custom script I wrote using esbuild). What I want during development is: make changes to watched .ts files -> .ts are autotranspiled to .js -> page/server reloads. What are people using to that end (other than Ctrl-C > up > enter)? Am I missing something obvious here?...

Looking for 2 Deno developers for Remote work.

Hi Team, Urgent: 2 Remote Deno Developer Required We're seeking experienced 2 Deno Developer to join our team on a remote basis ASAP. As a key member, you'll contribute to the development of our backend infrastructure using Deno....

Loading Skeleton

Hi everyone 👋, I’m building a FreshJS app and running into a persistent CORS issue when trying to fetch data from Supabase. The app technically fetches data successfully, but I keep getting CORS errors in the browser console, which interrupts hydration and breaks signals like IS_BROWSER.
My goal is to have a skeleton loader show up immediately while the data is being fetched asynchronously—and then seamlessly replace it with the fetched content when the data is ready. ...

How to import from a URL in the age of JSR?

I’m down with the whole JSR thing — deno add is very useful and maintainable. However, one thing I liked about the deno.land days was that I could sometimes use a /x/ module in the browser by importing directly from a deno.land/x/*.js or *.ts url.
Is it possible to do this with JSR? For instance, is there a way to load @std/csv into the browser from a JSR URL?...

Installing packages locally with Deno

I want a local copy of a foo js (node) module in my project that I'll be able to serve to the browser directly (no bundling). If I add it with deno add npm:foo then I can reference the module in my code but the browser won't be able to resolve foo. So I would like to know how I can make a local install with Deno (that's not in the global cache but in my local project), so that I just need to serve this folder and add an importmap script to tell the browser how to resolve foo. ...
Next