wrong Reflect method
Opened this issue · 5 comments
its-dibo commented
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 commented
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.
zaro commented
@its-dibo Ok, but what exactly is the problem?
The packages build fine, there are no Typescript errors, so what exactly are you reporting ?
its-dibo commented
I think (but not sure), that is because tsconfig uses "target": "es2018",