Cannot find name 'WeakRef' / Property 'deref' does not exist on type 'object' #10913
Replies: 7 comments 13 replies
-
@maxxturing The type declaration of WeakRef was added at deno v1.5.0 ref: https://github.com/denoland/deno/blob/main/Releases.md#150--20201027 You need to upgrade at least to v1.5.0 to type check WeakRefs. Is that possible for your case? |
Beta Was this translation helpful? Give feedback.
-
if possible, try to upgrade to the latest version. It has loads and loads of improvements |
Beta Was this translation helpful? Give feedback.
-
If upgrade is difficult, the options might be:
But upgrading is probably the most recommended way to address the issue... |
Beta Was this translation helpful? Give feedback.
-
Using I'm now getting 16 errors:
Any idea how to solve these? |
Beta Was this translation helpful? Give feedback.
-
Type re exports require that you use |
Beta Was this translation helpful? Give feedback.
-
You need to The problems you are likely to encounter from this upgrade (all but the ones introduced in 1.5.0) can be sorted out by just running --no-check on your code. The only ones that can't be ignore are the ones related to isolatedModules If you can share what your error with |
Beta Was this translation helpful? Give feedback.
-
Thanks @lucacasonato @Soremwar @kitsonk! I edited the I'm now left with 6 errors:
Any tips? 🤔 |
Beta Was this translation helpful? Give feedback.
-
Backend code has not changed since 2 Jun 2021 - everything has been fine
Ran command to run backend locally today (9 Jun 2021)
Runs successfully
After a few seconds it breaks and multiple errors are outputted
Possibly linked to:
8 Jun 2021 Update - https://github.com/denoland/deno/releases/tag/v1.11.0
denoland/std#949
denoland/std#951
https://github.com/denoland/deno_std/blame/e2360e70bfc0d69725e2975e4c2c2352305f83e5/testing/asserts.ts#L177
https://github.com/denoland/deno_std/blame/e2360e70bfc0d69725e2975e4c2c2352305f83e5/testing/asserts.ts#L178
https://github.com/denoland/deno_std/blame/e2360e70bfc0d69725e2975e4c2c2352305f83e5/testing/asserts.ts#L179
deno 1.3.3
v8 8.6.334
typescript 4.0.2
superoak 3.1.0
📣 Friendly deno users - Any ideas as to what the issue is here? 🤔
Beta Was this translation helpful? Give feedback.
All reactions