title: Command "yarn run build" exited with 1. Vercel deploy
body: <p>I've been trying to deploy my create-react-app to vercel but keep getting the following error. Everything works locally and even builds with no errors. How can I fix it? I already tried to get variables on vercel project settings and nothing.</p>
  <p>I build with npm run build and do nothing with Yarn, so I don't get it.</p>
  <pre><code>    [1/4] Resolving packages...
      [2/4] Fetching packages...
      [3/4] Linking dependencies...
      warning &quot; &gt; @testing-library/user-event@12.8.3&quot; has unmet peer dependency &quot;@testing-library/dom@&gt;=7.21.4&quot;.
      warning &quot;react-scripts &gt; tailwindcss@3.0.23&quot; has unmet peer dependency &quot;autoprefixer@^10.0.2&quot;.
      warning &quot;react-scripts &gt; eslint-config-react-app &gt; eslint-plugin-flowtype@8.0.3&quot; has unmet peer dependency &quot;@babel/plugin-syntax-flow@^7.14.5&quot;.
      warning &quot;react-scripts &gt; eslint-config-react-app &gt; eslint-plugin-flowtype@8.0.3&quot; has unmet peer dependency &quot;@babel/plugin-transform-react-jsx@^7.14.9&quot;.
      [4/4] Building fresh packages...
      Done in 74.94s.
      Running &quot;yarn run build&quot;
      yarn run v1.22.17
      $ react-scripts build
      Creating an optimized production build...
      Treating warnings as errors because process.env.CI = true.
      Most CI servers set it automatically.
      Failed to compile.
      src/App.tsx
        Line 4:9:   'BrowserRouter' is defined but never used  @typescript-eslint/no-unused-vars
        Line 4:24:  'Navigate' is defined but never used       @typescript-eslint/no-unused-vars
        Line 14:8:  'Login' is defined but never used          @typescript-eslint/no-unused-vars
      src/Components/Content/Message/Message.jsx
        Line 5:9:  'Navigate' is defined but never used  no-unused-vars
      src/Components/Content/Message/MessageInfo/MessageAccounts.jsx
        Line 9:13:  img elements must have an alt prop, either with meaningful text, or an empty string for decorative images  jsx-a11y/alt-text
      src/Components/Content/Profile/Profile.jsx
        Line 34:13:  img elements must have an alt prop, either with meaningful text, or an empty string for decorative images  jsx-a11y/alt-text
      src/Components/Content/Profile/ProfileInfo/PersonalData.jsx
        Line 10:17:  img elements must have an alt prop, either with meaningful text, or an empty string for decorative images  jsx-a11y/alt-text
      src/Components/Content/Profile/ProfileInfo/Review.jsx
        Line 14:13:  img elements must have an alt prop, either with meaningful text, or an empty string for decorative images  jsx-a11y/alt-text
        Line 20:21:  img elements must have an alt prop, either with meaningful text, or an empty string for decorative images  jsx-a11y/alt-text
      src/Components/Content/Users/Usersc.jsx
        Line 5:9:    'Navigate' is defined but never used                                                                       no-unused-vars
        Line 27:29:  img elements must have an alt prop, either with meaningful text, or an empty string for decorative images  jsx-a11y/alt-text
      src/Components/Header/Header.jsx
        Line 4:9:    'NavLink' is defined but never used                                                                        no-unused-vars
        Line 26:25:  img elements must have an alt prop, either with meaningful text, or an empty string for decorative images  jsx-a11y/alt-text
      src/Components/Header/HeaderContainer.tsx
        Line 15:13:  'axios' is assigned a value but never used  @typescript-eslint/no-unused-vars
      src/Components/Redux/auth-reducer.ts
        Line 69:50:  Array.prototype.filter() expects a return value from arrow function  array-callback-return
      src/Components/Redux/userspage-reducer.ts
        Line 1:9:     'HeaderAPI' is defined but never used  @typescript-eslint/no-unused-vars
        Line 66:130:  Expected '!==' and instead saw '!='    eqeqeq
      src/Components/Sidebar/Friends/FriendAccount.jsx
        Line 9:13:  img elements must have an alt prop, either with meaningful text, or an empty string for decorative images  jsx-a11y/alt-text
      src/Components/Sidebar/Friends/Friends.jsx
        Line 6:64:  Array.prototype.map() expects a value to be returned at the end of arrow function  array-callback-return
      src/common/Loading/loading.jsx
        Line 7:9:  img elements must have an alt prop, either with meaningful text, or an empty string for decorative images  jsx-a11y/alt-text
      error Command failed with exit code 1.
      info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
      Error: Command &quot;yarn run build&quot; exited with 1`
  </code></pre>
  <p>is't my package.json:</p>
  <pre><code>{
    &quot;homepage&quot;: &quot;https://yefimchuk.github.io/social-network-React&quot;,
    &quot;name&quot;: &quot;first-react-app&quot;,
    &quot;version&quot;: &quot;0.1.0&quot;,
    &quot;private&quot;: true,
    &quot;dependencies&quot;: {
      &quot;@testing-library/jest-dom&quot;: &quot;^5.11.4&quot;,
      &quot;@testing-library/react&quot;: &quot;^11.1.0&quot;,
      &quot;@testing-library/user-event&quot;: &quot;^12.1.10&quot;,
      &quot;antd&quot;: &quot;^4.18.7&quot;,
      &quot;axios&quot;: &quot;^0.25.0&quot;,
      &quot;react&quot;: &quot;^17.0.2&quot;,
      &quot;react-dom&quot;: &quot;^17.0.2&quot;,
      &quot;react-redux&quot;: &quot;^7.2.6&quot;,
      &quot;react-router&quot;: &quot;^6.2.1&quot;,
      &quot;react-router-dom&quot;: &quot;^6.2.2&quot;,
      &quot;react-scripts&quot;: &quot;^5.0.0&quot;,
      &quot;redux&quot;: &quot;^4.1.2&quot;,
      &quot;redux-thunk&quot;: &quot;^2.4.1&quot;,
      &quot;typescript&quot;: &quot;^4.5.4&quot;,
      &quot;web-vitals&quot;: &quot;^1.0.1&quot;
    },
    &quot;scripts&quot;: {
      &quot;predeploy&quot;: &quot;npm run build&quot;,
      &quot;deploy&quot;: &quot;gh-pages -d build&quot;,
      &quot;start&quot;: &quot;react-scripts start&quot;,
      &quot;build&quot;: &quot;react-scripts build&quot;,
      &quot;test&quot;: &quot;react-scripts test&quot;,
      &quot;eject&quot;: &quot;react-scripts eject&quot;
    },
    &quot;eslintConfig&quot;: {
      &quot;extends&quot;: [
        &quot;react-app&quot;,
        &quot;react-app/jest&quot;
      ]
    },
    &quot;browserslist&quot;: {
      &quot;production&quot;: [
        &quot;&gt;0.2%&quot;,
        &quot;not dead&quot;,
        &quot;not op_mini all&quot;
      ],
      &quot;development&quot;: [
        &quot;last 1 chrome version&quot;,
        &quot;last 1 firefox version&quot;,
        &quot;last 1 safari version&quot;
      ]
    },
    &quot;devDependencies&quot;: {
      &quot;gh-pages&quot;: &quot;^3.2.3&quot;
    }
  }
  </code></pre>
  <p>can anyone help? what is mean and how is't solve?</p>