Skip to content

Reflect-metadata does not work properly #114

@warriorBrian

Description

@warriorBrian

I used the reflect-metadata installation package, I introduced it, and configured some corresponding methods in the tsconfig file, I have to specify some parameters:

image
Specify the parameter as node to use normally, otherwise it will report an error, Reflect.defineMetadata is not a function
But now the dev-server in webpack doesn't work. Every time you write any properties or methods in Reflect-metadata, it won't reload properly.

image

I have to manually force the shutdown and restart npm run dev
How to solve this? 🤔

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions