Deno

D

Deno

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

Join

Deno + Vite + React (JS): create-vite-extra not working

Trying to use create-vite-extra with deno-react template. TS version works perfectly. JS version fails with "createRoot is not a function" right out of the starter project with zero edits. All the plugins and dependencies are installed. Not sure what the issue is.

pnpm -like experience

Hello! I'm experimenting with switching from node to deno for the obvious DX benefits but I'm running into a few difficulties. I use pnpm workspaces extensively, even on smaller projects, but some of my projects have dozens of packages. pnpm make this very pleasant by having a bunch of functionality that works nicely with worskapce. - workspace packages can be defined using a glob pattern....

Having issues downloading Deno

I tried to download Deno by pasting the code given on the Deno website in my Windows Powershell but it gives me this error. Thanks!
No description

Hate Preact/react for Fresh Framework

I don't know if this is the correct place, but if I may ask why was the design choice something react based? I personally very much dislike react, but I want to use Fresh, I would honestly prefer svelte or vue for something like Fresh. I've been using Preact with it for a few days now, but I am really disliking the experience and it is busy driving me away from the Fresh Framework unfortunately, as I really like the concept of it. I want to use Deno, as I never really liked the NodeJs ecosystem...

Deno JavaScript Jupyter notebook issue

I have been struggling with getting started with jupyter notebooks which supports javascript. Deno expects jupyter to be in PATH, whereas I have tried everything, literally whatever I could do but jupyter is not being in PATH. Mainly i tried: - pip install notebook - manully added python 3.12's scripts path to env's PATH - still jupyter not being recognised as command ...

import suggestions not working as intended (vscode)

Hello, import suggestions (symbols not known to file) not working for me as intended on deno latest (vscode): When symbol not known:...
No description

Why Are Permissions Enabled Globally and Not Per Dependency?

I've been trying out Deno and built a small project. One thing heard about Deno was the control over what a package can do on your system. However, after going through the docs and experimenting, I noticed that permissions can only be enabled globally for the project. Is there a way to allow specific permissions, like file system access, for just one package? It feels a bit confusing because in my small project, I already need to allow three permissions, and I’m tempted to just use the -A flag f...

deno serve logs?

When self hosting an app with deno serve, what is the best way to get request logs? Long-term goal is to log to STDOUT in JSON format to send to Datadog for parsing. The app I'm working on is a high volume, but very simple, link shortening app, so deno serve with a bit of --parallel seems very well suited to it....

Deno + Vite + Local Packages Issue

Hello! I'm new to deno and I'm giving a try to deno 2. I have a Vite project that relies on local packages. ```sh deno -v deno 2.0.2...

dynamic import fail

alright, so i had another issue aside from this but I figured it out, though its a very clearly ugly fix... just ignore that.. Anyways, this hangs on the import statement... ```ts for (const folder of commandFolders) { //...
No description

on deploy: error: Uncaught (in promise) Error: Expected JSON

My deployments were working fine , but suddenly started doing this: ``` (base) ➜ botfarms-api git:(main) ✗ deno task deploy...

npm:<package-name> not auto-installing by default.

I was reading the documentation for npm package support and read this section: https://docs.deno.com/runtime/fundamentals/node/#using-npm-packages. My assumption was that deno would auto-install npm packages if non-existent by default without having to configure auto-install. Was I wrong in this assumption?...

Async Unsafe Callback?

Is it possible to create a unsafe callback on a async function? I need the native program to wait for a response from async function before continuing!...

no intellisense for expressjs with deno lsp

not getting any intellisense / suggestions in vs code when i'm using deno specifically with express which i've installed with deno i npm:express npm:types@express deno vs code extension is installed i've run the Deno > Initialize Workspace cmd .vscode/settings.json in the working directory and has the following config...
No description

Sloppy imports on remote?

Is there any way to enable sloppy imports for the own imports on a remote (such as GitHub?). Trying to use some node code on deno, yet imports cannot be resolved since they're missing the extension. ``` error: Module not found "https://raw.githubusercontent.com/drips-network/app/fcad99122daed83e29ebb6f2637b3c67aee17a04/src/lib/components/stepper/types". at https://raw.githubusercontent.com/drips-network/app/fcad99122daed83e29ebb6f2637b3c67aee17a04/src/lib/flows/create-drip-list-flow/create-drip-list-flow.ts:1:26...

Deno Compile Exe doesn't run

Quick question, I just got started with deno because I wanted to make an exe of my simple node js app. It ran pretty much right away without having to change anything except adding node: in front of my path and crypto imports. Honestly, I was expecting to have to do so much more so that was awesome. It compiled just fine to an exe, but when I try to run the exe, it outputs with: ``` Uncaught (in promise) Error: Could not locate the bindings file. Tried: → C:\Users\usr\AppData\Local\Temp\deno-compile-file-importer.exe\file-importer\node_modules.deno\drivelist@12.0.2\node_modules\drivelist\build\drivelist.node...

Deno, Tauri v2, Nextjs stack easily possible?

Hey PHP Dev here. I'm a complete newbie when it comes to developing with a JS Runtime and I was thinking about building a project of mine with a Deno-Tauri v2-Nextjs Stack. For a Deno/Node Dev it is prob really easy but I couldn't find anything about this. Is there an easy way to build this tech stack without big hassle? I know how to install Tauri with Deno and how to install Deno with Nextjs but not really how to do all three at the same time... Do I need to do it manualy like it is described here -> https://v2.tauri.app/start/create-project/#manual-setup-tauri-cli ?...

SvelteKit ./$types can't be found in +page.server.ts

VSCode: 1.94.2 OS: MacOS Sequoia 15.0.1 Deno: 2.0.2 Deno Extension: 3.42.0 Typescript: 5.6.3...

local npm module

Is there a way to add or import a local npm es module in deno 2? Example: deno add ../the-module...