-
Hi @Romakita , I have my Server.ts using a controller that exported from my other project and it returned 404. When I copied the controller to the same package as Server.ts // Not working
import { TheController } from "@repo/http"
@Configration({
mount: {
"/": [TheController]
}
})
export class Server {}
// Working
@Controller("/")
class TheController {
@Get("")
get() { return "Hello world!" }
}
@Configration({
mount: {
"/": [TheController]
}
})
export class Server {} The same happened with Injectable service. Do TsED support it or I'm doing something wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hello @datnq I works always with mono repo for my customer project ^^. The only problem could be a dependencies issue. All tsed dependencies must declared on package.json server level. Other packages must have tsed dependencies as peerDependencies. Otherwise, and depending on the package manager, it’ll install dependencies on each packages level. See you |
Beta Was this translation helpful? Give feedback.
Hello @datnq
You have problably something wrong in your side. Mono repo works.
https://github.com/tsedio/tsed-monorepo-template
I works always with mono repo for my customer project ^^.
tsed repo is also a mono repo.
The only problem could be a dependencies issue. All tsed dependencies must declared on package.json server level. Other packages must have tsed dependencies as peerDependencies. Otherwise, and depending on the package manager, it’ll install dependencies on each packages level.
See you