Open Christian24 opened 7 years ago
Can you reproduce your issue with the latest version of routing-controllers and this package?
Yes, I can:
TypeError: Cannot read property 'params' of undefined
at C:\Users\Chris\Documents\acropolis\node_modules\typeorm-routing-controllers-extensions\decorators\EntityFromBody.js:15:57
at C:\Users\Chris\Documents\acropolis\routes\cities.js:12:37
at DecorateProperty (C:\Users\Chris\Documents\acropolis\node_modules\reflect-metadata\Reflect.js:530:29)
at Object.decorate (C:\Users\Chris\Documents\acropolis\node_modules\reflect-metadata\Reflect.js:100:20)
at __decorate (C:\Users\Chris\Documents\acropolis\routes\cities.js:4:92)
at Object.<anonymous> (C:\Users\Chris\Documents\acropolis\routes\cities.js:106:1)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
Just did a quick test somewhere in code.
Hello,
I have the following controller:
It does not compile with the following error:
Could it be that there is a bug there and that the array params needs to be instantiated first?
Thanks a lot, Christian