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
used the search to make sure that a similar issue hasn't already been submit
Expected Behavior
Following the guide allowing for building with no errors to learn about TSOA.
Current Behavior
The following error occurs
❯ yarn run tsc --outDir build --experimentalDecorators
build/routes.ts:4:69 - error TS2307: Cannot find module '@tsoa/runtime' or its corresponding type declarations.
4 import { TsoaRoute, fetchMiddlewares, ExpressTemplateService } from '@tsoa/runtime';
~~~~~~~~~~~~~~~
build/routes.ts:7:91 - error TS2307: Cannot find module 'express' or its corresponding type declarations.
7 import type { Request as ExRequest, Response as ExResponse, RequestHandler, Router } from 'express';
~~~~~~~~~
src/app.ts:2:43 - error TS2307: Cannot find module 'express' or its corresponding type declarations.
2 import express, { json, urlencoded } from "express";
~~~~~~~~~
src/server.ts:4:14 - error TS2580: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.
4 const port = process.env.PORT || 3000;
~~~~~~~
src/users/usersController.ts:11:8 - error TS2307: Cannot find module 'tsoa' or its corresponding type declarations.
11 } from "tsoa";
~~~~~~
src/users/usersController.ts:30:10 - error TS2339: Property 'setStatus' does not exist on type 'UsersController'.
30 this.setStatus(201); // set return status 201
~~~~~~~~~
Found 6 errors in 4 files.
Errors Files
2 build/routes.ts:4
1 src/app.ts:2
1 src/server.ts:4
2 src/users/usersController.ts:11
Sorting
I'm submitting a ...
I confirm that I
Expected Behavior
Following the guide allowing for building with no errors to learn about TSOA.
Current Behavior
The following error occurs
Steps to Reproduce
yarn run tsoa routes
yarn run tsc --outDir build --experimentalDecorators
Context (Environment)
Version of the library: 6.4.0
Version of NodeJS: 22.2.0
tsconfig.json
package.json
Errors showing in VSCode
Cannot find module 'tsoa' or its corresponding type declarations.
Property 'setStatus' does not exist on type 'UsersController'.
The text was updated successfully, but these errors were encountered: