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
I'm trying to create a mono repo with nx but after choosing a nodeexpress app as my app template and using Migrate from Express.js to add tsed to my app, any @Inject would not wotk and throws 'UNDEFINED_TOKEN_ERROR: Given token is undefined. Have you enabled emitDecoratorMetadata in your tsconfig.json or decorated your class with @Injectable, @Service, ... decorator
I've also checked tsconfig to be sure that emitDecoratorMetadata is true.
commenting out @Injects will run project successfully, but without @Inject it meaningless
I use nx on many project and it works. My config isn't the same but it works.
You've probably forgot something.
My point is if the process works as expected using the Ts.ED CLI or a node process, it works for anything. I won't give you free support for an integration issue ;).
Especially if you don't create a repository to reproduce the example. I will unfortunately not waste time copying all your codes to set up a project and reproduce your problem.
Information
"@tsed/ajv": "^7.34.6",
"@tsed/common": "^7.34.6",
"@tsed/core": "^7.34.6",
"@tsed/di": "^7.34.6",
"@tsed/engines": "^7.34.6",
"@tsed/exceptions": "^7.34.6",
"@tsed/json-mapper": "^7.34.6",
"@tsed/logger": "^7.34.6",
"@tsed/logger-file": "^7.34.6",
"@tsed/openspec": "^7.34.6",
"@tsed/platform-cache": "^7.34.6",
"@tsed/platform-exceptions": "^7.34.6",
"@tsed/platform-express": "^7.34.6",
"@tsed/platform-log-middleware": "^7.34.6",
"@tsed/platform-middlewares": "^7.34.6",
"@tsed/platform-params": "^7.34.6",
"@tsed/platform-response-filter": "^7.34.6",
"@tsed/platform-views": "^7.34.6",
"@tsed/schema": "^7.34.6",
"@tsed/swagger": "^7.34.6",
I'm trying to create a mono repo with
nx
but after choosing anode
express
app as my app template and usingMigrate from Express.js to add
tsed
to my app, any @Inject would not wotk and throws'UNDEFINED_TOKEN_ERROR: Given token is undefined. Have you enabled emitDecoratorMetadata in your tsconfig.json or decorated your class with @Injectable, @Service, ... decorator
I've also checked
tsconfig
to be sure thatemitDecoratorMetadata
is true.commenting out
@Inject
s will run project successfully, but without@Inject
it meaninglessExample
main.ts
server.ts
package.json
tsconfig.base.json
tsconfig.app.json
nx project.json
The text was updated successfully, but these errors were encountered: