It's more a npm installation related error. In the render.com settings of your project you should have a build command like that:
npm install && npm run build
for my project i have src/ relative path, don't pay attention.