Hello guys im running with this error, can someone help me thank you so much,
2:06:11 PM: Netlify Build
2:06:11 PM: ────────────────────────────────────────────────────────────────
2:06:11 PM:
2:06:11 PM: ❯ Version
2:06:11 PM: @netlify/build 29.17.2
2:06:11 PM:
2:06:11 PM: ❯ Flags
2:06:11 PM: baseRelDir: true
2:06:11 PM: buildId: 64c8a05c096ec548b49cb871
2:06:11 PM: deployId: 64c8a05c096ec548b49cb873
2:06:11 PM:
2:06:11 PM: ❯ Current directory
2:06:11 PM: /opt/build/repo/frontend
2:06:11 PM:
2:06:11 PM: ❯ Config file
2:06:11 PM: No config file was defined: using default values.
2:06:11 PM:
2:06:11 PM: ❯ Context
2:06:11 PM: production
2:06:11 PM:
2:06:11 PM: Build command from Netlify app
2:06:11 PM: ────────────────────────────────────────────────────────────────
2:06:11 PM:
2:06:11 PM: $ npm run build
2:06:11 PM: > frontend@0.1.0 build
2:06:11 PM: > react-scripts build
2:06:12 PM: Creating an optimized production build…
2:07:14 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 2 (Search results for '"non-zero exit code: 2"' - Netlify Support Forums)
2:07:12 PM:
2:07:12 PM: Treating warnings as errors because process.env.CI = true.
2:07:12 PM: Most CI servers set it automatically.
2:07:12 PM:
2:07:12 PM: Failed to compile.
2:07:12 PM:
2:07:12 PM: src/App.js
2:07:12 PM: Line 5:3: ‘Navigate’ is defined but never used no-unused-vars
2:07:12 PM: src/components/Header.jsx
2:07:12 PM: Line 2:10: ‘FaSignInAlt’ is defined but never used no-unused-vars
2:07:12 PM: Line 2:37: ‘FaUser’ is defined but never used no-unused-vars
2:07:12 PM: Line 3:10: ‘Link’ is defined but never used no-unused-vars
2:07:12 PM: Line 45:15: The href attribute requires a valid value to be accessible. Provide a valid, navigable address as the href value. If you cannot provide a valid href, but still need the element to resemble a link, use a button and change it with appropriate styles. Learn more: https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/anchor-is-valid.md jsx-a11y/anchor-is-valid
2:07:12 PM: Line 48:15: The href attribute requires a valid value to be accessible. Provide a valid, navigable address as the href value. If you cannot provide a valid href, but still need the element to resemble a link, use a button and change it with appropriate styles. Learn more: https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/HEAD/docs/rules/anchor-is-valid.md jsx-a11y/anchor-is-valid
2:07:12 PM: src/pages/AccessDenied.js
2:07:12 PM: Line 10:5: img elements must have an alt prop, either with meaningful text, or an empty string for decorative images jsx-a11y/alt-text
rs
2:07:13 PM:
2:07:13 PM: build.command failed
2:07:13 PM: ────────────────────────────────────────────────────────────────
2:07:13 PM:
2:07:13 PM: Error message
2:07:13 PM: Command failed with exit code 1: npm run build (Search results for '"non-zero exit code: 1"' - Netlify Support Forums)
2:07:13 PM:
2:07:13 PM: Error location
2:07:13 PM: In Build command from Netlify app:
2:07:13 PM: npm run build
2:07:13 PM:
2:07:13 PM: Resolved config
2:07:13 PM: build:
2:07:13 PM: base: /opt/build/repo/frontend
2:07:13 PM: command: npm run build
2:07:13 PM: commandOrigin: ui
2:07:13 PM: publish: /opt/build/repo/frontend/build
2:07:13 PM: publishOrigin: ui
2:07:14 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
2:07:14 PM: Failing build: Failed to build site
2:07:14 PM: Finished processing build request in 1m26.446s