Uncaught (in promise) TypeError: Reflect.getMetadata is not a function
Hi all, I'm trying to use dtos like I'm used to in nodejs.
I have the following imports
import { validate } from "npm:class-validator@0.14.1"; import { plainToClass } from "npm:class-transformer@0.5.1";
And I get the following error:
error: Uncaught (in promise) TypeError: Reflect.getMetadata is not a function at file:///Users/foo/Library/Caches/deno/npm/registry.npmjs.org/class-transformer/0.5.1/cjs/decorators/type.decorator.js:13:39
How can I fix it?
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
D
Deno
Chat about Deno, a modern runtime for JavaScript and TypeScript.