zhmushan / dev_server Goto Github PK
View Code? Open in Web Editor NEWFeel free to import TypeScript files in the script tag!
License: MIT License
Feel free to import TypeScript files in the script tag!
License: MIT License
Command
deno run -A --unstable https://deno.land/x/dev_server/mod.ts --template hello_world
Error
Compile` https://deno.land/[email protected]/fs/mod.ts
error: TS2322 [ERROR]: Type 'string' is not assignable to type 'boolean'.
return srcArray.reduce(
at https://deno.land/[email protected]/fs/_util.ts:20:3
Deno Version
1.0.0
When I do deno install -A --unstable https://deno.land/x/dev_server/mod.ts
,
I get the following error:
Download https://deno.land/x/dev_server/mod.ts
Download https://deno.land/x/dev_server/types.ts
Download https://deno.land/x/dev_server/deps.ts
Download https://deno.land/x/[email protected]/mod.ts
Download https://deno.land/x/[email protected]/middleware/logger.ts
Download https://deno.land/x/[email protected]/constants.ts
Download https://deno.land/[email protected]/path/mod.ts
Download https://deno.land/[email protected]/fs/mod.ts
Download https://deno.land/[email protected]/flags/mod.ts
Download https://deno.land/[email protected]/fmt/colors.ts
Download https://deno.land/x/[email protected]/types.ts
Download https://deno.land/x/[email protected]/context.ts
Download https://deno.land/x/[email protected]/middleware/skipper.ts
Download https://deno.land/[email protected]/path/win32.ts
Download https://deno.land/[email protected]/path/posix.ts
Download https://deno.land/[email protected]/path/common.ts
Download https://deno.land/[email protected]/path/separator.ts
Download https://deno.land/[email protected]/path/interface.ts
Download https://deno.land/[email protected]/path/glob.ts
Download https://deno.land/[email protected]/fs/empty_dir.ts
Download https://deno.land/[email protected]/fs/ensure_dir.ts
Download https://deno.land/[email protected]/fs/ensure_file.ts
Download https://deno.land/[email protected]/fs/ensure_link.ts
Download https://deno.land/[email protected]/fs/ensure_symlink.ts
Download https://deno.land/[email protected]/fs/exists.ts
Download https://deno.land/[email protected]/fs/expand_glob.ts
Download https://deno.land/[email protected]/fs/move.ts
Download https://deno.land/[email protected]/fs/copy.ts
Download https://deno.land/[email protected]/fs/read_file_str.ts
Download https://deno.land/[email protected]/fs/write_file_str.ts
Download https://deno.land/[email protected]/fs/read_json.ts
Download https://deno.land/[email protected]/fs/write_json.ts
Download https://deno.land/[email protected]/fs/walk.ts
Download https://deno.land/[email protected]/fs/eol.ts
Download https://deno.land/[email protected]/testing/asserts.ts
Download https://deno.land/x/[email protected]/app.ts
Download https://deno.land/x/[email protected]/group.ts
Download https://deno.land/x/[email protected]/router.ts
Download https://deno.land/x/[email protected]/node.ts
Download https://deno.land/x/[email protected]/http_exception.ts
Download https://deno.land/x/[email protected]/deps.ts
Download https://deno.land/x/[email protected]/util.ts
Download https://deno.land/[email protected]/path/_globrex.ts
Download https://deno.land/[email protected]/path/_constants.ts
Download https://deno.land/[email protected]/path/_util.ts
Download https://deno.land/[email protected]/fs/_util.ts
Download https://deno.land/[email protected]/testing/diff.ts
Download https://deno.land/[email protected]/http/cookie.ts
Download https://deno.land/[email protected]/http/server.ts
Download https://deno.land/[email protected]/http/http_status.ts
Download https://deno.land/[email protected]/encoding/utf8.ts
Download https://deno.land/[email protected]/mime/multipart.ts
Download https://deno.land/[email protected]/datetime/mod.ts
Download https://deno.land/[email protected]/io/bufio.ts
Download https://deno.land/[email protected]/async/mod.ts
Download https://deno.land/[email protected]/http/_io.ts
Download https://deno.land/[email protected]/bytes/mod.ts
Download https://deno.land/[email protected]/io/ioutil.ts
Download https://deno.land/[email protected]/io/readers.ts
Download https://deno.land/[email protected]/io/util.ts
Download https://deno.land/[email protected]/textproto/mod.ts
Download https://deno.land/[email protected]/_util/has_own_property.ts
Download https://deno.land/[email protected]/async/deferred.ts
Download https://deno.land/[email protected]/async/delay.ts
Download https://deno.land/[email protected]/async/mux_async_iterator.ts
Compile https://deno.land/x/dev_server/mod.ts
error: TS2345 [ERROR]: Argument of type '"file" | "dir" | "symlink" | undefined' is not assignable to parameter of type 'SymlinkOptions | undefined'.
Type '"file"' is not assignable to type 'SymlinkOptions | undefined'.
await Deno.symlink(originSrcFilePath, dest, type);
~~~~
at https://deno.land/[email protected]/fs/copy.ts:114:47
TS2345 [ERROR]: Argument of type '"file" | "dir" | "symlink" | undefined' is not assignable to parameter of type 'SymlinkOptions | undefined'.
Type '"file"' is not assignable to type 'SymlinkOptions | undefined'.
Deno.symlinkSync(originSrcFilePath, dest, type);
~~~~
at https://deno.land/[email protected]/fs/copy.ts:132:45
TS2345 [ERROR]: Argument of type '"file" | "dir" | "symlink" | undefined' is not assignable to parameter of type 'SymlinkOptions | undefined'.
Type '"file"' is not assignable to type 'SymlinkOptions | undefined'.
await Deno.symlink(src, dest, srcFilePathType);
~~~~~~~~~~~~~~~
at https://deno.land/[email protected]/fs/ensure_symlink.ts:31:33
TS2345 [ERROR]: Argument of type '"file" | "dir" | "symlink" | undefined' is not assignable to parameter of type 'SymlinkOptions | undefined'.
Type '"file"' is not assignable to type 'SymlinkOptions | undefined'.
Deno.symlinkSync(src, dest, srcFilePathType);
~~~~~~~~~~~~~~~
at https://deno.land/[email protected]/fs/ensure_symlink.ts:58:31
Found 4 errors.
Trying to install getting the following error:
> deno install -A --unstable https://deno.land/x/dev_server/mod.ts
Check https://deno.land/x/dev_server/mod.ts
error: TS2322 [ERROR]: Type '"esm"' is not assignable to type '"module" | "classic" | undefined'.
bundle: "esm",
~~~~~~
at https://deno.land/x/[email protected]/mod.ts:144:7
Here is my version:
> deno --version
deno 1.11.5 (release, x86_64-unknown-linux-gnu)
v8 9.1.269.35
typescript 4.3.2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.