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

SyntaxError: The requested module './Reflect.ts' does not provide an export named 'Reflect' #8

Open lem0nify opened 2 years ago

lem0nify commented 2 years ago

Trying to import Reflect causes

error: Uncaught SyntaxError: The requested module './Reflect.ts' does not provide an export named 'Reflect'
export { Reflect } from "./Reflect.ts";
         ^
    at <anonymous> (https://deno.land/x/reflect_metadata@v0.1.12-2/mod.ts:1:10)
$ deno --version
deno 1.23.0 (release, x86_64-unknown-linux-gnu)
v8 10.4.132.5
typescript 4.7.2
simonNozaki commented 2 years ago

I had the same problem. Cloning and running example script of this repository, it seems that deno does not support export namespace . So, maybe the code base may be rewritten.

Formyown commented 2 years ago

I have the same issue, and such basic dependencies should be fixed quickly. Thanks.

slim-hmidi commented 2 years ago

I face the same problem with deno v1.23.4. Is there any workaround for that?

lem0nify commented 2 years ago

@slim-hmidi A workaround I found is using this module instead. 😅