Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property 'toString' of undefined #6

Open
thynson opened this issue Aug 25, 2016 · 1 comment
Open

TypeError: Cannot read property 'toString' of undefined #6

thynson opened this issue Aug 25, 2016 · 1 comment

Comments

@thynson
Copy link

thynson commented Aug 25, 2016

Stacktrace is

                        throw new Error(`Unknown definition: ${paramDefinition.toString()}`)
                                                                              ^
TypeError: Cannot read property 'toString' of undefined

    at ContainerResolver.resolveProperties (/Users/lanxingcan/Documents/Workspace/fittime-notification-worker/node_modules/huject/src/resolver.ts:161:79)
    at ContainerResolver.resolve (/Users/lanxingcan/Documents/Workspace/fittime-notification-worker/node_modules/huject/src/resolver.ts:104:30)
    at Container.resolve (/Users/lanxingcan/Documents/Workspace/fittime-notification-worker/node_modules/huject/src/container.ts:111:30)
    at Object.<anonymous> (/Users/lanxingcan/Documents/Workspace/fittime-notification-worker/index.ts:20:8)
    at Module._compile (module.js:556:32)
    at loader (/usr/local/lib/node_modules/ts-node/src/index.ts:290:14)
    at Object.require.extensions.(anonymous function) [as .ts] (/usr/local/lib/node_modules/ts-node/src/index.ts:307:14)
    at Module.load (module.js:473:32)
    at tryModuleLoad (module.js:432:12)
    at Function.Module._load (module.js:424:3)
    at Function.Module.runMain (module.js:590:10)
    at Object.<anonymous> (/usr/local/lib/node_modules/ts-node/src/_bin.ts:179:12)
    at Module._compile (module.js:556:32)
    at Object.Module._extensions..js (module.js:565:10)
    at Module.load (module.js:473:32)
    at tryModuleLoad (module.js:432:12)

@Smert
Copy link

Smert commented Jul 27, 2017

@thynson

tsconfig.json

"emitDecoratorMetadata": true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants