lukeautry / tsoa

Build OpenAPI-compliant REST APIs using TypeScript and Node
MIT License
3.32k stars 481 forks source link

Regression in route generation from 5.1.1 to 6.x.x: "This node kind is unknown" #1629

Open azymnis opened 1 month ago

azymnis commented 1 month ago

Sorting

Description

When generating the routes from my project using tsoa v6.2.1 (typescript 5.3.3) I get the following error:

Generate routes error.
  GenerateMetadataError: This node kind is unknown: 241
  At unknown position...
 This was caused by '<unknown name>'

This used to work fine for tsoa v5.1.1

Steps to Reproduce

Our code is a bit complex so I could not get the chance to create a minimal example that reproduces this issue. I also grepped the code to understand why we would get a This node kind is unknown error. Could you explain to me how this could happen?

One thing to note is that we do use yarn workspaces and we do have some interfaces defined in a shared package between our frontend and backend. Could this be causing issues?

Context (Environment)

Version of the library: 6.2.1 Version of NodeJS: 20.11.0 Typescript: v5.3.3

Though keep in mind that we are using yarn v4.1.1

github-actions[bot] commented 2 weeks ago

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