NPM Run Build Failing

I am trying to deploy this app NEWS CHALLENGE but Render is just repeatedly running NPM Run Build without anything happening or the site being deployed.

I used NPM Install for the Build Command and NPM Run Build for the Start Command.

It works fine on my local machine using these commands, although I do have to install esbuild globally. Any advice would be much appreciated.

First thing I notice is that you’re watching for changes which is probably stopping render to continue.
Second thing I notice is that it looks like you’re using web service but there is no server behind your code, its just a static site?

Try the following

  1. Use a static site not web service
  2. Remove the watch flag from the build script in package.json
  3. change build command to npm install; npm run build
1 Like

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