I wrote a github action to build and deploy my app and it fails with no definitive error.
I actually figured out what was wrong, I had a build config switched on that was treating warnings as errors, the build process kept failing because of warnings. The solution was to switch it off like so;
change
"build": "react-scripts build"
to
"build": "CI=false react-scripts build"
in my package json.
By default the build process during the build process reads
"build": "CI=true react-scripts build"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.