0
When I try to execute the node start
where I have only tsc
it works. Correctly compiles the Typescript files.
When I try to run the node start
where I have only nodemon ./dist/app
it works. Runs my app correctly.
The problem is when I try to run the node start
with the command tsc; nodemon ./dist/app
. Generates the error below:
> tsc ; nodemon ./dist/app
error TS6231: Could not resolve the path ';' with the extensions: '.ts', '.tsx', '.d.ts'.
error TS6231: Could not resolve the path 'dist/app' with the extensions: '.ts', '.tsx', '.d.ts'.
error TS6231: Could not resolve the path 'nodemon' with the extensions: '.ts', '.tsx', '.d.ts'.
Found 3 errors.
By your code I didn’t get it right. You’ve already built it and it’s in the folder
dist
and still want to rotate thetsc
again?– Cmte Cardeal
i want every time I start, it runs Tsc and nodemon
– Fabio Santos
is running in windows? try: "start": "Tsc && nodemon . /dist/app"
– William Bruno Rocha Moraes