Open ben-laird opened 3 months ago
Temporal is still an unstable API, to use it you need to run Deno with --unstable-temporal
command line option. (seems like it's missing from the manual: https://docs.deno.com/runtime/manual/tools/unstable_flags )
Not sure about Iterator
Thanks for the fix with Temporal
, wish the error was a bit more helpful.
Version: Deno 1.42.3
Explanation
Hello! I'm using Deno in experiments with TypeScript to learn more about the language, especially surrounding iterators and bleeding-edge ECMAScript proposals. As of
1.42
I had read that Deno has support for theTemporal
API as well as the newIterator
API. When I went to use them in my own code, the language server didn't even recognize theIterator
namespace, and running any code with theTemporal
namespace with Deno throws aReferenceError
. Here is a link to a minimal reproduction of the issue.Reproduction
main
branch of this repositorydeno test
at the root of the projectTS2693 [ERROR]: 'Iterator' only refers to a type, but is being used as a value here.
error: ReferenceError: Temporal is not defined
Details
Output of
deno --version
: