deno
deno copied to clipboard
Uncaught SyntaxError: The requested module './Reflect.ts' does not provide an export named 'Reflect'
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
Reproduction:
import { Reflect } from "https://deno.land/x/[email protected]/mod.ts";
console.log(Reflect);
This is an swc-only bug, opened https://github.com/swc-project/swc/issues/5197.
I encountered this problem after upgrading the Deno version, so I modified the original code myself. You can use this package first: https://deno.land/x/[email protected]
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.
Any fix to this - ?