mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 09:31:22 -05:00
docs: update --unstable flag forget message (#7708)
This commit is contained in:
parent
52c67d301c
commit
30252e25b8
1 changed files with 4 additions and 4 deletions
|
@ -51,15 +51,15 @@ Compile file:///dev/deno/main.ts
|
|||
Download https://deno.land/std@$STD_VERSION/fs/copy.ts
|
||||
Download https://deno.land/std@$STD_VERSION/fs/ensure_dir.ts
|
||||
Download https://deno.land/std@$STD_VERSION/fs/_util.ts
|
||||
error: TS2339 [ERROR]: Property 'utime' does not exist on type 'typeof Deno'.
|
||||
error: 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@$STD_VERSION/fs/copy.ts:90:16
|
||||
at https://deno.land/std@$STD_VERSION/fs/copy.ts:92:16
|
||||
|
||||
TS2339 [ERROR]: Property 'utimeSync' does not exist on type 'typeof Deno'.
|
||||
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@$STD_VERSION/fs/copy.ts:101:10
|
||||
at https://deno.land/std@$STD_VERSION/fs/copy.ts:103:10
|
||||
```
|
||||
|
||||
Solution to that problem requires adding `--unstable` flag:
|
||||
|
|
Loading…
Add table
Reference in a new issue