Sh: 1: vite: not found

My deployment has been working fine and suddendly stopped working.
It’s a react + nodejs project using vite.

The error I get is during the build process:
sh: 1: vite: not found

The build works fine locally. It just suddenly stopped working on render.com about an hour ago.

This is my repo:

Help would be greatly appreciated.

my fault - I defined an environment variable
NODE_ENV=production

Should not have done that.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.