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

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

Open slim-hmidi opened 2 years ago

slim-hmidi commented 2 years ago

I use deno v1.23.4 and inject module. While I run the server I got this error:

error: Uncaught SyntaxError: The requested module './Reflect.ts' does not provide an export named 'Reflect'
export { Reflect } from "./Reflect.ts";

It seems like deno accepts only declare namescpace and export type. https://deno.land/manual/typescript/faqs#why-are-you-forcing-me-to-use-isolated-modules-why-cant-i-use-const-enums-with-deno-why-do-i-need-to-do-export-type

nayeemrmn commented 2 years ago

This is a Deno/swc bug tracked in https://github.com/denoland/deno/issues/15197.