Deployment to PRODUCTION fails - tsc not found

Hello,

I have a very simple web application and using GitHub integration I deploy the code to our preview environment with no issues (NODE_ENV = development). However when I deploy to PROD (NODE_ENV = production) I get an error message during the build process as shown below.

16:30:15.623 Executing user command: bash build.sh
16:30:15.630 Executing WhichBnBN custom buid script
16:30:15.630 Build environment is PRODUCTION
16:30:16.199
16:30:16.199 > whichbnb@0.0.22 build-prod
16:30:16.199 > tsc && vite build --mode production
16:30:16.199
16:30:16.211 sh: 1: tsc: not found
16:30:16.224 Failed: Error while executing user command. Exited with error code: 127
16:30:16.240 Failed: build command exited with code: 1
16:30:18.465 Failed: error occurred while running build command


Anyone have any ideas why it works for dev and not for prod?
Was this page helpful?