gid-oss/dataui-nestjs-crud

wrong Reflect method

Opened this issue · 5 comments

in this line

      Reflect.defineMetadata(metadataKey, metadataValue, target, propertyKey);

Reflect doesn't have a static method called defineMetadata, it is defined by reflect-metadata which must be imported as a side effect like this:

import "reflect-metadata";

//Now we can use  Reflect.defineMetadata()

the file uses it doesn't import reflect-metadata though it is add to dependencies

@its-dibo How exactly does this occur?

How exactly does this occur?

I cant get your question, but I just noticed that you are using some reflect-metadata functionalities without importing it.

@its-dibo Ok, but what exactly is the problem?

The packages build fine, there are no Typescript errors, so what exactly are you reporting ?

I think (but not sure), that is because tsconfig uses "target": "es2018",

@its-dibo Yes, and it builds fine. My question is what is the actual problem you are reporting ?

How can I reproduce the problem you are describing ?