Closed IamCocoDev closed 10 months ago
Hello there IamCocoDev 👋
Thank you for opening your very first issue in this project.
We will try to get back to you as soon as we can.👀
I discovered what line of code fails it
import { Router } from 'express';
private route: Router = Router();
If I quit the Router type like that code works fine!
import { Router } from 'express';
private route: any = Router();
You need to add the following code. To generate the required files just run tsoa spec-and-routes
.
import {RegisterRoutes} from "../build/routes";
RegisterRoutes(app);
You need to add the following code. To generate the required files just run
tsoa spec-and-routes
.import {RegisterRoutes} from "../build/routes"; RegisterRoutes(app);
I can't use that code he suggests because it edits the Swagger configuration and causes Nodemon to enter an infinite loop
@IamCocoDev you can add an ignore
array to the nodemon.json
file, which should avoid that infinite loop issue.
Thanks, @Alexander-Welsh, I have a question about how to work RegisterRoutes(app); because I can do all TSOA without this line!
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days
Sorting
I'm submitting a ...
I confirm that I
Hi people i have a problem with using tsoa with typescript and express
Thas my folder structure
I have this problem
This the code iam trying to use tsoa but cant work when run tsoa spec
And the lastone code its express server