You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
node_modules\typeorm-routing-controllers-extensions\decorators\EntityFromBody.js:15
MetadataArgsStorage_1.defaultMetadataArgsStorage.params.push({
^
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\countries.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\countries.js:4:92)
at Object.<anonymous> (C:\Users\Chris\Documents\acropolis\routes\countries.js:52: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)
````
Could it be that there is a bug there and that the array params needs to be instantiated first?
Thanks a lot,
Christian
The text was updated successfully, but these errors were encountered:
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)
Hello,
I have the following controller:
It does not compile with the following error:
The text was updated successfully, but these errors were encountered: