rbuckton / reflect-metadata

Prototype for a Metadata Reflection API for ECMAScript
https://rbuckton.github.io/reflect-metadata
Apache License 2.0
3.22k stars 185 forks source link

Cannot assign to read only property 'propertyName' of object '#<ClassName>' #52

Closed remojansen closed 7 years ago

remojansen commented 7 years ago

Hi,

I have updated reflect-metadata and it is breaking my build.

TypeScript Version: 2.1.1

All the failing unit tests are related with property decorators.

I've bene trying to find the root cause without luck.

Any ideas? Could you please point me in the right direction?

The source code of my librarie is available at https://github.com/remojansen/InversifyJS

Thanks!

remojansen commented 7 years ago

I have found the solution. Property generator must not return or this error will take place.