Closed sheppard30 closed 3 months ago
Hello there sheppard30 👋
Thank you for opening your very first issue in this project.
We will try to get back to you as soon as we can.👀
Seems like an issue with your tsc config. Make sure the types are included, not ignored.
Seems like an issue with your tsc config. Make sure the types are included, not ignored.
Hello. Thank you for your reply. This is my tsconfig.json and tsoa.json.
There are two issues:
{
"compilerOptions": {
"target": "es2022",
"module": "CommonJS",
"moduleResolution": "node",
"outDir": "./dist",
"rootDir": "./src",
"baseUrl": "./",
"resolveJsonModule": true,
"paths": {
"@config": ["src/config"],
"@controllers": ["src/controllers"],
"@env": ["src/env"],
"@helpers": ["src/helpers"],
"@middleware": ["src/middleware"],
"@models": ["src/models"],
"@services": ["src/services"],
"@types": ["src/types"],
"@utils": ["src/utils"]
},
"strict": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true
},
"include": ["src/**/*.ts", "src/test-setup.ts"],
"exclude": ["node_modules", "src/**/*.spec.ts"]
}
{
"entryFile": "src/main.ts",
"noImplicitAdditionalProperties": "throw-on-extras",
"controllerPathGlobs": ["src/**/*.controller.ts"],
"spec": {
"outputDirectory": "src/schema",
"specVersion": 3,
"securityDefinitions": {
"jwt": {
"type": "apiKey",
"in": "header",
"name": "Authentication"
}
}
},
"routes": {
"authenticationModule": "src/middleware/authentication.middleware.ts",
"routesDir": "src/routes"
}
}
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
I'm submitting a ...
I confirm that I
Expected Behavior
I shoud be able to import my type and dictionary of errors, use them in the @Response decorator to avoid duplication of code. I think it might be an issue with aliases. Relative path works better but still not ideal (eg I do not have my error messages from
errors
in swagger).Current Behavior
When I am trying to build routes I get an error
Possible Solution
No idea
Steps to Reproduce
Context (Environment)
Version of the library: 6.0.1 Version of NodeJS: 20.10