React app building with Yarn fails in netlify after adding _redirects file

netlify site name. https://tender-lichterman-37c7d0.netlify.app/

I’m trying to deploy my React app to Netlify from Github master branch. Initial build was fine but the app returned 404 on refreshing and therefore I added a _redirects file into the public directory. However, my builds on netlify fail after making that change. Build logs also doesn’t give me any hint, but I can build it locally without any errors. What is the reason for that? Can someone help me?

The complete Build log

8:32:35 PM: error Command failed with exit code 1.
8:32:35 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
8:32:35 PM: ​
8:32:35 PM: ┌─────────────────────────────┐
8:32:35 PM: │   "build.command" failed    │
8:32:35 PM: └─────────────────────────────┘
8:32:35 PM: ​
8:32:35 PM:   Error message
8:32:35 PM:   Command failed with exit code 1: yarn build
8:32:35 PM: ​
8:32:35 PM:   Error location
8:32:35 PM:   In Build command from settings:
8:32:35 PM:   yarn build
8:32:35 PM: ​
8:32:35 PM:   Resolved config
8:32:35 PM:   build:
8:32:35 PM:     command: yarn build
8:32:35 PM:     publish: /opt/build/repo/build
8:32:35 PM: Caching artifacts
8:32:35 PM: Started saving node modules
8:32:35 PM: Finished saving node modules
8:32:35 PM: Started saving build plugins
8:32:35 PM: Finished saving build plugins
8:32:35 PM: Started saving yarn cache
8:32:35 PM: Finished saving yarn cache
8:32:35 PM: Started saving pip cache
8:32:35 PM: Finished saving pip cache
8:32:35 PM: Started saving emacs cask dependencies
8:32:35 PM: Finished saving emacs cask dependencies
8:32:35 PM: Started saving maven dependencies
8:32:35 PM: Finished saving maven dependencies
8:32:35 PM: Started saving boot dependencies
8:32:35 PM: Finished saving boot dependencies
8:32:35 PM: Started saving go dependencies
8:32:35 PM: Finished saving go dependencies
8:32:40 PM: Error running command: Build script returned non-zero exit code: 1
8:32:40 PM: Failing build: Failed to build site
8:32:40 PM: Failed during stage 'building site': Build script returned non-zero exit code: 1
8:32:40 PM: Finished processing build request in 2m19.94499846s

hey there, could you post your package.json and a screenshot of your build settings please?