profile
viewpoint

Ask questionsRecommended in documentation "file_server" compiles with error

https://deno.land/std/manual.md#file-server

I updated Deno, but server installation still fails :(

`user@pc:~$ deno install --allow-net --allow-read file_server https://deno.land/std/http/file_server.ts Download https://deno.land/std/http/file_server.ts Compile https://deno.land/std/http/file_server.ts Download https://deno.land/std/path/mod.ts Download https://deno.land/std/http/server.ts Download https://deno.land/std/flags/mod.ts Download https://deno.land/std/testing/asserts.ts Download https://deno.land/std/path/win32.ts Download https://deno.land/std/path/posix.ts Download https://deno.land/std/path/constants.ts Download https://deno.land/std/path/constants.ts Download https://deno.land/std/path/interface.ts Download https://deno.land/std/path/glob.ts Download https://deno.land/std/path/globrex.ts Download https://deno.land/std/path/utils.ts Download https://deno.land/std/fmt/colors.ts Download https://deno.land/std/testing/diff.ts Download https://deno.land/std/testing/format.ts Download https://deno.land/std/io/bufio.ts Download https://deno.land/std/textproto/mod.ts Download https://deno.land/std/http/http_status.ts Download https://deno.land/std/util/async.ts Download https://deno.land/std/http/io.ts Download https://deno.land/std/io/util.ts Download https://deno.land/std/strings/mod.ts Download https://deno.land/std/strings/encode.ts Download https://deno.land/std/strings/decode.ts Download https://deno.land/std/strings/pad.ts error TS2339: Property 'errors' does not exist on type 'typeof Deno'.

► https://deno.land/std/http/file_server.ts:166:25

166 if (e instanceof Deno.errors.NotFound) { ~~~~~~ `

denoland/deno

Answer questions kitsonk

Yes, we deploy breaking changes to master at the moment, which can mean that unless you are using a version of Deno off of master, other things on master won't work.

We should either update the manual automatically with the current latest tag as the part of the build process, or put an example/caveat there of how to use the pinned version. We can't just expect people to "know" that.

useful!

Related questions

{WSL 2} Permission denied (os error 13) hot 1
gRPC in Deno? hot 1
deno remove/uninstall subcommand hot 1
Insight required: Resource (TCP) errors hot 1
TCP accept loop doesn't use for-await hot 1
Support d.ts files hot 1
Restore runtime lib generation capability hot 1
disable flaky tests _048_media_types_jsx and _019_media_types hot 1
Typescript Custom Transformers Support hot 1
reorg directory structure hot 1
Centos 7 GLIBC_2.18 not found hot 1
"deno ast script.ts" hot 1
Text decoding performance abysmally slow. hot 1
"deno ast script.ts" hot 1
Can't build master hot 1
Github User Rank List