chat-with-deno-and-preact icon indicating copy to clipboard operation
chat-with-deno-and-preact copied to clipboard

运行

Open Pmantou opened this issue 4 years ago • 4 comments

Error report after operation

微信截图_20200914154830

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.

Pmantou avatar Sep 14 '20 07:09 Pmantou

Which Deno version do you have? This was implemented with deno 1.0.0-rc1. Probably needs an update! 👍 Thanks to report it

aralroca avatar Sep 14 '20 07:09 aralroca

 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.

Pmantou avatar Sep 14 '20 07:09 Pmantou

maybe new Version Error chat no use. this is demo ban.... 用不了啊~

checkwoodson avatar Nov 24 '21 07:11 checkwoodson

This demo is old (2 years ago), feel free to update it

aralroca avatar Nov 24 '21 10:11 aralroca