Android build fails but locally works fine

I have a problem when i start to build my application, because locally works fine, but when i use the Appflow inteface, show this:

Plus mi package.json is

if i run ionic cap build --prod works fine i dont know what can i do

This is a quirk of react-scripts. When running in a CI system it will treat warnings as errors. As a workaround you can change your build script to the following.
"build": "CI=false react-scripts build",

If you want this to run in Appflow only you can use the following.
"appflow:build": "CI=false react-scripts build",

The real solution is to resolve those warnings.