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
Should just output me the socket id, but throwing a TypeError.
Actual behavior
> ts-node src/server.ts
C:\Users\raima\Documents\Hexe\server\node_modules\reflect-metadata\Reflect.js:553
var decorated = decorator(target, propertyKey, descriptor);
^
TypeError: Cannot read property '0' of undefined
at C:\Users\raima\Documents\Hexe\server\src\decorators.ts:145:91
at C:\Users\raima\Documents\Hexe\server\src\event_handler\main.ts:9:37
at DecorateProperty (C:\Users\raima\Documents\Hexe\server\node_modules\reflect-metadata\Reflect.js:553:33)
at Object.decorate (C:\Users\raima\Documents\Hexe\server\node_modules\reflect-metadata\Reflect.js:123:24)
at __decorate (C:\Users\raima\Documents\Hexe\server\src\event_handler\main.ts:4:92)
at C:\Users\raima\Documents\Hexe\server\src\event_handler\main.ts:13:2
at Object.<anonymous> (C:\Users\raima\Documents\Hexe\server\src\event_handler\main.ts:8:1)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Module.m._compile (C:\Users\raima\Documents\Hexe\server\node_modules\ts-node\src\index.ts:1056:23)
at Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] serve: `ts-node src/server.ts`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] serve script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\raima\AppData\Roaming\npm-cache\_logs\2020-12-16T15_31_09_768Z-debug.log
Process finished with exit code 1
The text was updated successfully, but these errors were encountered:
raimannma
changed the title
fix: Decorators not working correctly
bug: Decorators not working correctly
Dec 16, 2020
Description
If I am adding a decorator for the parameter of a function, I am getting an error.
Minimal code-snippet showcasing the problem
It even won't work with you simple example.
Expected behavior
Should just output me the socket id, but throwing a TypeError.
Actual behavior
The text was updated successfully, but these errors were encountered: