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
[X ] used the search to make sure that a similar issue hasn't already been submit
Expected Behavior
I have a controller which returns a type that is defined in another file, however TSOA fails to find it during generation. Not sure if this is a relative path issue?
run tsoa spec-and-routes with some thing similar to above:
Generate routes error.
GenerateMetadataError: No declarations found for referenced type IElementsResponse.
at TypeResolver.getModelTypeDeclarations (C:\Users\119481\git\ddp-api-server\node_modules\@tsoa\cli\dist\metadataGeneration\typeResolver.js:871:62)
at TypeResolver.calcRefTypeName (C:\Users\119481\git\ddp-api-server\node_modules\@tsoa\cli\dist\metadataGeneration\typeResolver.js:536:39)
at TypeResolver.calcTypeReferenceTypeName (C:\Users\119481\git\ddp-api-server\node_modules\@tsoa\cli\dist\metadataGeneration\typeResolver.js:712:34)
at TypeResolver.getReferenceType (C:\Users\119481\git\ddp-api-server\node_modules\@tsoa\cli\dist\metadataGeneration\typeResolver.js:721:35)
at TypeResolver.resolveTypeReferenceNode (C:\Users\119481\git\ddp-api-server\node_modules\@tsoa\cli\dist\metadataGeneration\typeResolver.js:468:21)
at TypeResolver.resolve (C:\Users\119481\git\ddp-api-server\node_modules\@tsoa\cli\dist\metadataGeneration\typeResolver.js:293:21)
at TypeResolver.resolveTypeReferenceNode (C:\Users\119481\git\ddp-api-server\node_modules\@tsoa\cli\dist\metadataGeneration\typeResolver.js:458:93)
at TypeResolver.resolve (C:\Users\119481\git\ddp-api-server\node_modules\@tsoa\cli\dist\metadataGeneration\typeResolver.js:293:21)
at MethodGenerator.Generate (C:\Users\119481\git\ddp-api-server\node_modules\@tsoa\cli\dist\metadataGeneration\methodGenerator.js:62:78)
at C:\Users\119481\git\ddp-api-server\node_modules\@tsoa\cli\dist\metadataGeneration\controllerGenerator.js:46:41
Context (Environment)
Version of the library: "^6.5.1"
Version of NodeJS: "22.x"
Confirm you were using yarn not npm: [X ]
The text was updated successfully, but these errors were encountered:
I did a little more testing and it seems as though if I put in a full relative path it works: "eg ../../path/to/file as opposed to path/to/file.
Is there a config I am missing or is this just a limitation of the tool
Sorting
I'm submitting a ...
I confirm that I
Expected Behavior
I have a controller which returns a type that is defined in another file, however TSOA fails to find it during generation. Not sure if this is a relative path issue?
Current Behavior
Possible Solution
Steps to Reproduce
run tsoa spec-and-routes with some thing similar to above:
Context (Environment)
Version of the library: "^6.5.1"
Version of NodeJS: "22.x"
The text was updated successfully, but these errors were encountered: