cmd-johnson / deno-reflect-metadata

A Deno-compatible copy of the TypeScript Metadata Reflection API my Microsoft
Apache License 2.0
11 stars 4 forks source link

Properties Symbol.toPrimitive and Symbol.iterator does not exist #6

Closed justinmchase closed 2 years ago

justinmchase commented 2 years ago
> import { Reflect } from "https://deno.land/x/reflect_metadata@v0.1.12/mod.ts";
Download https://deno.land/x/reflect_metadata@v0.1.12/mod.ts
Download https://deno.land/x/reflect_metadata@v0.1.12/Reflect.ts
Check https://deno.land/x/reflect_metadata@v0.1.12/mod.ts
Uncaught TypeError: TS2339 [ERROR]: Property 'toPrimitive' does not exist on type 'never'.
      const toPrimitiveSymbol = supportsSymbol && typeof Symbol.toPrimitive !== "undefined" ? Symbol.toPrimitive : "@@toPrimitive";
                                                                ~~~~~~~~~~~
    at https://deno.land/x/reflect_metadata@v0.1.12/Reflect.ts:664:65

TS2339 [ERROR]: Property 'toPrimitive' does not exist on type 'never'.
      const toPrimitiveSymbol = supportsSymbol && typeof Symbol.toPrimitive !== "undefined" ? Symbol.toPrimitive : "@@toPrimitive";
                                                                                                     ~~~~~~~~~~~
    at https://deno.land/x/reflect_metadata@v0.1.12/Reflect.ts:664:102

TS2339 [ERROR]: Property 'iterator' does not exist on type 'never'.
      const iteratorSymbol = supportsSymbol && typeof Symbol.iterator !== "undefined" ? Symbol.iterator : "@@iterator";
                                                             ~~~~~~~~
    at https://deno.land/x/reflect_metadata@v0.1.12/Reflect.ts:665:62

TS2339 [ERROR]: Property 'iterator' does not exist on type 'never'.
      const iteratorSymbol = supportsSymbol && typeof Symbol.iterator !== "undefined" ? Symbol.iterator : "@@iterator";
                                                                                               ~~~~~~~~
    at https://deno.land/x/reflect_metadata@v0.1.12/Reflect.ts:665:96

Found 4 errors.
    at async <anonymous>:2:22
cmd-johnson commented 2 years ago

Hi there! This looks to be the same problem as #4. Try using the most recent version, which would be https://deno.land/x/reflect_metadata@v0.1.12-2/mod.ts.