Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm start crashes if we dont't run build before #29

Open
ftrinidad opened this issue Aug 11, 2023 · 0 comments
Open

npm start crashes if we dont't run build before #29

ftrinidad opened this issue Aug 11, 2023 · 0 comments

Comments

@ftrinidad
Copy link
Collaborator

ftrinidad commented Aug 11, 2023

image

The issue above happens if you run npm start without a npm run build.

A way to fix it is to edit the package.json this way so the routes are generated before:

"scripts": {    
    "start": "concurrently \"npm:watch-tsoa\" \"nodemon\"",
    "watch-tsoa": "nodemon -x tsoa spec-and-routes",

Result with the new config:

image


Same in ubuntu:

image

node version 18.17.1
npm 9.8.1

@pareselucas pareselucas self-assigned this Aug 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants