Static react files are giving build failures because of babel

Hi,
I’m trying deploy mern frontend code, but facing this error:

Compiled successfully.
File sizes after gzip:
  113.74 kB  build/static/js/main.15bc0c92.js
  4.35 kB    build/static/css/main.61927fd4.css
  1.77 kB    build/static/js/453.419a5d54.chunk.js
The project was built assuming it is hosted at /.
You can control this with the homepage field in your package.json.
The build folder is ready to be deployed.
You may serve it with a static server:
  npm install -g serve
  serve -s build
Find out more about deployment here:
  https://cra.link/deployment
==> Publish directory build does not exist!
==> Build failed 😞

I have added the babel dev dependency, even though I’m facing the same error. can anyone help me out

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