shakilsiraj / json-object-mapper

A TypeScript library to serialize and deserialize object graph from/to JSON in a fast and non-recursive way
MIT License
58 stars 18 forks source link

Error: Cannot find module 'reflect-metadata' #38

Closed omaishar closed 5 years ago

omaishar commented 5 years ago

I am getting the following error: Error: Cannot find module 'reflect-metadata'

Solution:

  1. Install reflect-metadata dependency yarn add reflect-metadata
  2. Import the library in your code import "reflect-metadata";
omaishar commented 5 years ago

Saw you added the instructions to your README file. Closing. Although you should consider adding the dependency in your code.