chat-with-deno-and-preact
chat-with-deno-and-preact copied to clipboard
运行
Error report after operation
Check file:///C:/Users/86135/Desktop/workSpace/deno/example/chat-with-deno-and-preact/server.ts error: TS2322 [ERROR]: Type 'import("https://deno.land/[email protected]/io/bufio").BufReader' is not assignable to type 'import("https://deno.land/[email protected]/io/bufio").BufReader'. Types have separate declarations of a private property 'buf'. bufReader: req.r, ~~~~~~~~~ at file:///C:/Users/86135/Desktop/workSpace/deno/example/chat-with-deno-and-preact/server.ts:21:9
The expected type comes from property 'bufReader' which is declared here on type '{ conn: Conn; bufWriter: BufWriter; bufReader: BufReader; headers: Headers; }'
bufReader: BufReader;
~~~~~~~~~
at https://deno.land/[email protected]/ws/mod.ts:416:3
TS2322 [ERROR]: Type 'import("https://deno.land/[email protected]/io/bufio").BufWriter' is not assignable to type 'import("https://deno.land/[email protected]/io/bufio").BufWriter'. Types have separate declarations of a private property 'writer'. bufWriter: req.w, ~~~~~~~~~ at file:///C:/Users/86135/Desktop/workSpace/deno/example/chat-with-deno-and-preact/server.ts:22:9
The expected type comes from property 'bufWriter' which is declared here on type '{ conn: Conn; bufWriter: BufWriter; bufReader: BufReader; headers: Headers; }'
bufWriter: BufWriter;
~~~~~~~~~
at https://deno.land/[email protected]/ws/mod.ts:415:3
Found 2 errors.
Which Deno version do you have? This was implemented with deno 1.0.0-rc1
. Probably needs an update! 👍 Thanks to report it
deno version is 1.3.3
------------------ 原始邮件 ------------------ 发件人: "Aral Roca Gomez"<[email protected]>; 发送时间: 2020年9月14日(星期一) 下午3:53 收件人: "aralroca/chat-with-deno-and-preact"<[email protected]>; 抄送: "等等"<[email protected]>; "Author"<[email protected]>; 主题: Re: [aralroca/chat-with-deno-and-preact] 运行 (#1)
Which Deno version do you have? This was implemented with deno 1.0.0-rc1. Probably needs an update! 👍 Thanks to report it
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
maybe new Version Error chat no use. this is demo ban.... 用不了啊~
This demo is old (2 years ago), feel free to update it