deno Questions

3

Solved

I installed Deno using PowerShell, and yet I got this error in my Visual Studio Code. How can I fix it? The term 'deno' is not recognized as the name of a cmdlet, function, script file, or operabl...
Cotyledon asked 3/6, 2020 at 9:57

3

Solved

Using Aleph with Deno found a bug, with the incompatible versions and I need to downgrade. How I can downgrade the deno version from 1.8.1 to 1.6.3 without uninstalling it?
Sind asked 18/3, 2021 at 8:45

5

Solved

When I first studied TypeScript, I found that node.js doesn't execute TypeScript, so you need to install a TypeScript compiler that converts your TypeScript code into JavaScript. I searched until I...
Sices asked 17/11, 2021 at 14:16

9

How can we get values from standard input in Deno? I don't know how to use Deno.stdin. An example would be appreciated.
Dissonancy asked 19/9, 2019 at 22:23

3

Could you please help me with replacing deprecetad deno bundle command? I wanted to change it for esbuild, but running a command: ./node_modules/.bin/esbuild --bundle lib/commands/abc/main.ts --out...
Reservation asked 16/4, 2023 at 16:15

3

Solved

I have been struggling to implement a 404 page in deno(oak server framework) - if i load any addtress that does not exist, i get just a blank page.. tried: (page404MiddleWare.ts): import {Context,...
Lagomorph asked 13/9, 2020 at 13:39

2

Solved

I am using the vscode-deno extension and eventhough I turned on deno.enable, deno.lint and deno.unstable in my vscode settings, it does not format my code on save, which I suppose is the expected b...
Cabalism asked 15/2, 2021 at 12:21

4

I'm trying to connect my deno application to mongodb but I get error. import {MongoClient} from "https://deno.land/x/[email protected]/mod.ts"; const client = await new MongoClient(...
Gemmell asked 5/2, 2021 at 15:27

1

I'm using deno db to connect to a supabase postgres server. Here's the error from deno deploy. TLS connection failed with message: invalid peer certificate contents: invalid peer certificate: Unsu...
Tall asked 26/8, 2022 at 6:2

5

Solved

How do we configure .vscode/launch.json to debug Deno projects? The IntelliSense the VSCode provides when I was in configurations didn't offer an option for Deno. Or is there an extension for this...
Cleave asked 17/5, 2020 at 14:51

1

How do you set the cookie in a websocket connection? I want to do this because I am using nginx ingress session affinity to correlate a user's session with a specific pod. But this request is being...
Deglutition asked 25/11, 2023 at 8:0

2

Solved

How can I get the directory & file name of the current module?. In Node.js I would use: __dirname & __filename for that
Dygert asked 15/5, 2020 at 22:30

3

Solved

In Node.js there is the cluster module to utilize all available cores on the machine which is pretty great, especially when used with the node module pm2. But I am pretty stoked about some features...
Anglonorman asked 4/4, 2022 at 11:20

5

Solved

I am trying to 'connect' my small React JS app with my Deno API backend on my local environment with fetch(). const apiUrl = `http://localhost:8000`; try{ fetch(apiUrl) .then((res) => res...
Lento asked 10/6, 2020 at 10:39

2

Solved

Judging by the API docs, a Deno subprocess (an instance of Deno.Process) can receive one of four stdin types, the same goes for stdout. However, there's no mention in the documentation as to how to...
Veradia asked 29/5, 2020 at 14:19

1

Solved

So I am exploring the concept of storing WebAssembly inside the JavaScript file so it can all be bundled up in one shippable file. I did manage to make a working example of this where it stores the...
Arlindaarline asked 18/9, 2023 at 11:22

3

Solved

How do I print a new line to the terminal without a newline in Deno? In node.js I used to do: process.stdout.write('hello, deno!') Is this possible in Deno? Deno does not have the process module, ...
Marcela asked 17/10, 2020 at 2:18

7

I am looking for an example of creating a https server in Deno. I have seen examples of Deno http server but not https. I have tried searching in google but found no results
Anopheles asked 30/4, 2019 at 1:31

2

Solved

I'm working on some Deno projects and would like to be able to compile TypeScript to JavaScript to run in the browser (since TS is not yet supported). When I worked with NodeJS I installed the tsc ...
Ruhr asked 5/2, 2021 at 17:1

3

Solved

I am checking out Deno and have found one of the starter examples very elegant: import { serve } from "https://deno.land/x/[email protected]/http/server.ts"; const s = serve("0.0.0.0:8000"); ...
Aggri asked 20/2, 2019 at 20:42

2

Solved

I'm using Deno to compile some TypeScript and then serve it as part of a web page, so that it is run on the browser side. I'm trying to use a canvas element on the client side, and for that I need ...
Custodian asked 23/2, 2022 at 17:39

2

Solved

I'm using Visual Studio Code to write Deno programs. The import statement in Deno contains the .ts extension, e.g. import { Application } from "https://deno.land/x/oak/mod.ts"; which is ...
Sinkage asked 2/12, 2020 at 20:17

3

Solved

I was recently playing with new Fresh framework for deno and it was all great but at some point I realized that there is no possibility to add any additional meta data to page head tag. Basically I...
Enow asked 6/7, 2022 at 21:13

3

I install denon on my mac and then tried to run this cmd: denon --init I get this message zsh: command not found: denon Even when I try to check for the version using denon --version, it throws t...
Mosely asked 28/5, 2020 at 5:43

5

Solved

Hello I am a frontEnd developer. First, I don't know much about the runtime environment. Is it possible to convert my project into Deno with Node? Even if I change all of my code, I'm not sure if...
Candlewood asked 20/5, 2020 at 1:9

© 2022 - 2024 — McMap. All rights reserved.