Build issue with react-app

Hi, @sahils091, using server side javascript isn’t supported at Netlify (with the exception of Functions). Are you generating a pure static version of your site where all javascript is client-side only?

With Create React App (CRA) this is usually done with npm run build (or yarn run build). Are you using that build command?

There is more about why this is required here:

Also, since this site is using client-side routing (as there is no server-side javascript running) the SPA (single-page app) redirect rule mentioned here is also required.

If there are other questions, please let us know.

1 Like