tsoa: Multiple matching models error only on version 3.1.0 and later

Sorting

  • I’m submitting a …

    • [v] bug report
    • feature request
    • support request
  • I confirm that I

    • [v] used the search to make sure that a similar issue hasn’t already been submit

Expected Behavior

I upgraded tsoa from 3.0.8 lately, and i’m getting Error: Multiple matching models found for referenced type LoDashStatic; please make model names unique. All i did was include the ‘Lodash’ library and use it in the project. Everything works perfectly on 3.0.8 but on 3.1.0 and later (3.2.1 tested) it doesn’t work anymore.

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Reactions: 3
  • Comments: 21 (5 by maintainers)

Most upvoted comments

ok… checking back in with an update. We had complexity because we’re running a monorepo that I won’t get into here, but this setting in tsconfig.json worked to get tsoa to ignore the duplicate definition in kubernetes:

"ignore": ["**/node_modules/@kubernetes/**"],