Questions tagged [deno]

A secure runtime for JavaScript and TypeScript.

Deno is a simple, modern, and secure runtime for JavaScript and TypeScript that uses V8 and is built in Rust.

  • Secure by default. No file, network, or environment access, unless explicitly enabled.
  • Supports TypeScript out of the box.
  • Ships only a single executable file.
  • Has built-in utilities like a dependency inspector (deno info) and a code formatter (deno fmt).
  • Has a set of reviewed (audited) standard modules that are guaranteed to work with Deno deno.land/std
919 questions
0
votes
0 answers

How to upload multiple images to Deno?

I want to know, how can we upload multiple images using Deno, I'm using mongo Database. I followed Article to Upload a single image to the server. app.ts import { Application, Router } from 'https://deno.land/x/oak/mod.ts'; import { viewEngine,…
FGH
  • 2,900
  • 6
  • 26
  • 59
0
votes
3 answers

How to create an empty file in Deno?

As per deno documentation for writeFile if I want to write in a file and overwrite if the file already exists I need this command - await Deno.writeFile("hello1.txt", data); // overwrite "hello1.txt" or create it What I need is to create an empty…
Puneet Singh
  • 3,477
  • 1
  • 26
  • 39
0
votes
0 answers

unable to link css file in denjucks template file

I am using deno and denjucks as templating engine. in template .html file header section, I am linking my external css file but failed. the code-
0
votes
1 answer

Running TCP echo server example: Uncaught ConnectionReset

I'm trying to run the TCP echo server example with deno run --allow-net https://deno.land/std/examples/echo_server.ts I get this output: deno run --allow-net https://deno.land/std/examples/echo_server.ts Listening on 0.0.0.0:8080 error: Uncaught…
Anna
  • 79
  • 1
  • 7
0
votes
1 answer

The --unstable flag must be provided

I am facing this error while running the Deno program. So can anyone help me how to add multiple flags in Deno? This is My Code: index.ts import * as bcrypt from "https://deno.land/x/bcrypt/mod.ts"; const salt = await bcrypt.genSalt(8); const…
Ashish Sharma
  • 406
  • 3
  • 11
0
votes
1 answer

"no method named `map_or` found" when installing deno with cargo

I am running Ubuntu 18.04. I had rust already installed using the instructions at rustup.rs in my /home/username/.cargo directory. When trying to install deno with: cargo insall deno towards the end of the process the build fails with the error: …
kaan_a
  • 3,503
  • 1
  • 28
  • 52
0
votes
2 answers

Deno Uncaught SyntaxError: Unexpected identifier at evaluate ($deno$/repl.ts:54:34) at Object.replLoop ($deno$/repl.ts:156:13)

I installed Deno using this choco install deno command, if I typed deno, I got the version, but if I try to run my index file, I got this error and whatever I typed i got the error like this(refer the image), what went wrong here, thank you Uncaught…
FGH
  • 2,900
  • 6
  • 26
  • 59
0
votes
0 answers

Getting this error - Expected Comma, got Some(Str { value: Atom('./type.ts' type=dynamic), has_escape: false })

Getting error - error: Expected Comma, got Some(Str { value: Atom('./type.ts' type=dynamic), has_escape: false }) at file: /jozty/Fae/equals.ts:4:17 Importing type.ts in equals.ts. It is giving this when type function is exported default, it…
Shivam Singla
  • 2,117
  • 1
  • 10
  • 22
0
votes
1 answer

Path to Deno is not correct WebStorm

I am trying to run a simple Deno project in WebStorm. I have installed Deno and enabled the Deno support for this project. Also added an environment variable of the Deno bin folder with name: DENO_INSTALL_DIR But while setting the run configuration…
Avijit Karmakar
  • 8,890
  • 6
  • 44
  • 59
0
votes
1 answer

How can I run Deno behind corporate proxy

I'm trying to run deno on my corporate machine. So I'm behind a corporate proxy. When I try to run a command like: deno run https://deno.land/std/http/server.ts I get an error saying: Download https://deno.land/std/http/server.ts error: error…
SiddAjmera
  • 38,129
  • 5
  • 72
  • 110
0
votes
2 answers

sh: 39: unzip: not found while installing deno

I am getting this following error sh: 39: unzip: not found while installing Deno on windows Subsystem For Linux(WSL).
Anurag Arwalkar
  • 615
  • 7
  • 10
0
votes
0 answers

Why is my Sudoku Solver not changing passed array values in TypeScript?

Ok, so I looked into the stack overflow site and found some similar questions, but none of them seem to give me the solution to my problem here. If I am correct, arrays and objects are passed by reference automatically in JavaScript and TypeScript,…
0
votes
2 answers

Deno: how do I connect to oracle database?

For a rest service written in DENO - i.e Nodejs replacement, I need to query oracle database. How can I do that? Any examples? Note: I do see postgres libs, but that's not my current need. Note2: If currently no solution, just make the question…
Espresso
  • 5,378
  • 4
  • 35
  • 66
0
votes
0 answers

Error in command line “deno run server.ts” terminated by signal SIGSEGV (Address boundary error)

controllers/products.ts import { Product } from "../types.ts"; let products: Product[] = [ { id: "1", name: "Product One", description: "This is product one", price: 29.99, }, { id: "2", …
0
votes
1 answer

Deno - access web apis

I am bundling my Deno code for the web using deno bundle and I know the browser has RTCPeerConnection from the WebRTC API which I would like to use. I thought Deno was aiming to have web compatibility, so I don't see why WebRTC is not planned to be…
David Callanan
  • 5,601
  • 7
  • 63
  • 105