Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on installation #8

Open
aaryanporwal opened this issue Feb 3, 2022 · 7 comments
Open

Error on installation #8

aaryanporwal opened this issue Feb 3, 2022 · 7 comments

Comments

@aaryanporwal
Copy link

I'm a new user to deno and this stuff, and was trying to install this application on windows 11.
This is the error I'm getting:

> deno install --unstable -A https://deno.land/x/hcload/hcload.ts
Check https://deno.land/x/hcload/hcload.ts
error: TS2339 [ERROR]: Property 'getIterator' does not exist on type 'ReadableStream<R>'.
  return res.readable.getIterator();
                      ~~~~~~~~~~~
    at https://deno.land/std@0.73.0/async/pool.ts:45:23

image

> deno --version
deno 1.18.1 (release, x86_64-pc-windows-msvc)
v8 9.8.177.6
typescript 4.5.2

@khrj
Copy link
Owner

khrj commented Feb 9, 2022

Looks like a previously unstable API broke with a newer version of Deno.
I've fixed it in v1.3.2 - All of the APIs should now be stable, so --unstable is no longer needed.

@khrj khrj closed this as completed Feb 9, 2022
@aaryanporwal
Copy link
Author

It's still broken

$ deno install -A https://deno.land/x/hcload/hcload.ts
Check https://deno.land/x/hcload/hcload.ts
error: TS2339 [ERROR]: Property 'getIterator' does not exist on type 'ReadableStream<R>'.
  return res.readable.getIterator();
                      ~~~~~~~~~~~
    at https://deno.land/std@0.73.0/async/pool.ts:45:23

TS2339 [ERROR]: Property 'utime' does not exist on type 'typeof Deno'. 'Deno.utime' is an unstable API. Did you forget to run with the '--unstable' flag?
    await Deno.utime(dest, statInfo.atime, statInfo.mtime);
               ~~~~~
    at https://deno.land/std@0.74.0/fs/copy.ts:92:16

TS2339 [ERROR]: Property 'utimeSync' does not exist on type 'typeof Deno'. 'Deno.utimeSync' is an unstable API. Did you forget to run with the '--unstable' flag?
    Deno.utimeSync(dest, statInfo.atime, statInfo.mtime);
         ~~~~~~~~~
    at https://deno.land/std@0.74.0/fs/copy.ts:103:10

TS2339 [ERROR]: Property 'utime' does not exist on type 'typeof Deno'. 'Deno.utime' is an unstable API. Did you forget to run with the '--unstable' flag?
    await Deno.utime(dest, statInfo.atime, statInfo.mtime);
               ~~~~~
    at https://deno.land/std@0.74.0/fs/copy.ts:127:16

TS2339 [ERROR]: Property 'utimeSync' does not exist on type 'typeof Deno'. 'Deno.utimeSync' is an unstable API. Did you forget to run with the '--unstable' flag?
    Deno.utimeSync(dest, statInfo.atime, statInfo.mtime);
         ~~~~~~~~~
    at https://deno.land/std@0.74.0/fs/copy.ts:152:10

TS2339 [ERROR]: Property 'utime' does not exist on type 'typeof Deno'. 'Deno.utime' is an unstable API. Did you forget to run with the '--unstable' flag?
    await Deno.utime(dest, srcStatInfo.atime, srcStatInfo.mtime);
               ~~~~~
    at https://deno.land/std@0.74.0/fs/copy.ts:172:16

TS2339 [ERROR]: Property 'utimeSync' does not exist on type 'typeof Deno'. 'Deno.utimeSync' is an unstable API. Did you forget to run with the '--unstable' flag?
    Deno.utimeSync(dest, srcStatInfo.atime, srcStatInfo.mtime);
         ~~~~~~~~~
    at https://deno.land/std@0.74.0/fs/copy.ts:200:10

Found 7 errors.

@khrj
Copy link
Owner

khrj commented Apr 4, 2022

Could you share the version of deno you have installed?

deno --version

@khrj khrj reopened this Apr 4, 2022
@aaryanporwal
Copy link
Author

aaryanporwal commented Apr 5, 2022

$ deno --version
deno 1.18.1 (release, x86_64-pc-windows-msvc)
v8 9.8.177.6
typescript 4.5.2

@khrj
Copy link
Owner

khrj commented Apr 6, 2022

You'll need a newer version of Deno, try v1.20.4. Some of these APIs only hit stable with 1.20

@aaryanporwal
Copy link
Author

aaryanporwal commented Apr 7, 2022 via email

@khrj
Copy link
Owner

khrj commented Apr 7, 2022

I'm on Deno v1.19.1, and it works for me:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants