build failed with this Error
11:00:47 PM: [4/4] Building fresh packages...
11:00:52 PM: Done in 91.96s.
11:00:52 PM: NPM modules installed using Yarn
11:00:52 PM: Started restoring cached go cache
11:00:52 PM: Finished restoring cached go cache
11:00:52 PM: go version go1.16.5 linux/amd64
11:00:52 PM: go version go1.16.5 linux/amd64
11:00:52 PM: Installing missing commands
11:00:52 PM: Verify run directory
11:00:55 PM:
11:00:55 PM: ────────────────────────────────────────────────────────────────
11:00:55 PM: Netlify Build
11:00:55 PM: ────────────────────────────────────────────────────────────────
11:00:55 PM:
11:00:55 PM: ❯ Version
11:00:55 PM: @netlify/build 27.1.3
11:00:55 PM:
11:00:55 PM: ❯ Flags
11:00:55 PM: baseRelDir: true
11:00:55 PM: buildId: 628a80ee506abb0f73f74f26
11:00:55 PM: deployId: 628a80ee506abb0f73f74f28
11:00:55 PM:
11:00:55 PM: ❯ Current directory
11:00:55 PM: /opt/build/repo
11:00:55 PM:
11:00:55 PM: ❯ Config file
11:00:55 PM: No config file was defined: using default values.
11:00:55 PM:
11:00:55 PM: ❯ Context
11:00:55 PM: production
11:00:55 PM:
11:00:55 PM: ────────────────────────────────────────────────────────────────
11:00:55 PM: 1. Build command from Netlify app
11:00:55 PM: ────────────────────────────────────────────────────────────────
11:00:55 PM:
11:00:55 PM: $ npm run build
11:00:55 PM: > sportbet@0.1.0 build
11:00:55 PM: > react-scripts build
11:00:58 PM: Creating an optimized production build...
11:02:48 PM:
11:02:48 PM: Treating warnings as errors because process.env.CI = true.
11:02:48 PM: Most CI servers set it automatically.
11:02:48 PM:
11:02:48 PM: Failed to compile.
11:02:48 PM:
11:02:48 PM: src/components/common/CdbSidebar/Game.jsx
11:02:48 PM: Line 6:10: 'determineResult' is defined but never used no-unused-vars
11:02:48 PM: Line 26:33: Expected '===' and instead saw '==' eqeqeq
11:02:48 PM: Line 26:57: Expected '===' and instead saw '==' eqeqeq
11:02:48 PM: Line 50:6: React Hook useCallback has missing dependencies: 'bet?.publicKey', 'connection', 'defaultWallet', and 'setSecUpdateList'. Either include them or remove the dependency array. If 'setSecUpdateList' changes too often, find the parent component that defines it and wrap that definition in useCallback react-hooks/exhaustive-deps
11:02:48 PM: Line 184:7: 'Like' is assigned a value but never used no-unused-vars
11:02:48 PM: src/components/common/CdbSidebar/SideBar.jsx
11:02:48 PM: Line 24:76: Expected '===' and instead saw '==' eqeqeq
11:02:48 PM: Line 52:72: Expected '!==' and instead saw '!=' eqeqeq
11:02:48 PM: Line 66:6: React Hook useEffect has a missing dependency: 'program.account.game'. Either include it or remove the dependency array react-hooks/exhaustive-deps
11:02:48 PM: src/components/common/SideBar/BottomSide.jsx
11:02:48 PM: Line 24:6: React Hook useEffect has a missing dependency: 'connection'. Either include it or remove the dependency array react-hooks/exhaustive-deps
11:02:48 PM: src/components/common/SideBar/Game.jsx
11:02:48 PM: Line 19:40: Expected '===' and instead saw '==' eqeqeq
11:02:48 PM: Line 46:6: React Hook useCallback has missing dependencies: 'connection', 'defaultWallet', 'game?.publicKey', and 'setSecUpdateList'. Either include them or remove the dependency array. If 'setSecUpdateList' changes too often, find the parent component that defines it and wrap that definition in useCallback react-hooks/exhaustive-deps
11:02:48 PM: src/components/common/SideBar/SideBar.jsx
11:02:48 PM: Line 6:8: 'wlt' is defined but never used no-unused-vars
11:02:48 PM: Line 12:7: 'filterMaker' is assigned a value but never used no-unused-vars
11:02:48 PM: Line 19:7: 'filterTaker' is assigned a value but never used no-unused-vars
11:02:48 PM: Line 52:72: Expected '!==' and instead saw '!=' eqeqeq
11:02:48 PM: Line 67:6: React Hook useEffect has a missing dependency: 'program.account.game'. Either include it or remove the dependency array react-hooks/exhaustive-deps
11:02:48 PM: Line 128:7: 'WalletPic' is assigned a value but never used no-unused-vars
11:02:48 PM: Line 133:7: 'Typography' is assigned a value but never used no-unused-vars
11:02:48 PM: src/components/routes/ActiveBet/ActiveBetList/ActiveBetContainer.jsx
11:02:48 PM: Line 2:10: 'Fade' is defined but never used no-unused-vars
11:02:48 PM: Line 9:8: 'chelsea' is defined but never used no-unused-vars
11:02:48 PM: Line 18:87: Expected '===' and instead saw '==' eqeqeq
11:02:48 PM: src/components/routes/ActiveBet/ActiveBetList/ActiveBetList.jsx
11:02:48 PM: Line 11:69: Expected '===' and instead saw '==' eqeqeq
11:02:48 PM: Line 11:127: Expected '===' and instead saw '==' eqeqeq
11:02:48 PM: Line 29:10: 'loading' is assigned a value but never used no-unused-vars
11:02:48 PM: Line 29:19: 'setLoading' is assigned a value but never used no-unused-vars
11:02:48 PM: Line 42:81: Expected '!==' and instead saw '!=' eqeqeq
11:02:48 PM: Line 47:6: React Hook useEffect has a missing dependency: 'program.account.game'. Either include it or remove the dependency array react-hooks/exhaustive-deps
11:02:48 PM: Line 49:76: Expected '===' and instead saw '==' eqeqeq
11:02:48 PM: Line 51:6: React Hook useCallback has an unnecessary dependency: 'league'. Either exclude it or remove the dependency array react-hooks/exhaustive-deps
11:02:48 PM: src/components/routes/ActiveBet/ActiveBetList/JoinBetModal.jsx
11:02:48 PM: Line 26:33: '_takerTokenAccountBump' is assigned a value but never used no-unused-vars
11:02:48 PM: Line 56:6: React Hook useCallback has missing dependencies: 'closeModal', 'program.methods', 'setUpdataeTheList', and 'wallet.publicKey'. Either include them or remove the dependency array. If 'closeModal' changes too often, find the parent component that defines it and wrap that definition in useCallback react-hooks/exhaustive-deps
11:02:48 PM: src/components/routes/ActiveBet/filterbox/FilterBox.jsx
11:02:48 PM: Line 11:7: 'Leagues' is assigned a value but never used no-unused-vars
11:02:48 PM: Line 27:6: React Hook useEffect has a missing dependency: 'setLeague'. Either include it or remove the dependency array. If 'setLeague' changes too often, find the parent component that defines it and wrap that definition in useCallback react-hooks/exhaustive-deps
11:02:48 PM: src/components/routes/CdbActiveBet/ActiveBetList/ActiveBetContainer.jsx
11:02:48 PM: Line 2:19: 'Fade' is defined but never used no-unused-vars
11:02:48 PM: Line 131:7: 'Info' is assigned a value but never used no-unused-vars
11:02:48 PM: src/components/routes/CdbActiveBet/ActiveBetList/ActiveBetList.jsx
11:02:48 PM: Line 11:65: Expected '===' and instead saw '==' eqeqeq
11:02:48 PM: Line 11:102: Expected '===' and instead saw '==' eqeqeq
11:02:48 PM: Line 50:81: Expected '!==' and instead saw '!=' eqeqeq
11:02:48 PM: Line 52:83: Expected '===' and instead saw '==' eqeqeq
11:02:48 PM: Line 64:6: React Hook useEffect has a missing dependency: 'program.account.game'. Either include it or remove the dependency array react-hooks/exhaustive-deps
11:02:48 PM: Line 70:15: Expected '===' and instead saw '==' eqeqeq
11:02:48 PM: Line 73:15: Expected '===' and instead saw '==' eqeqeq
11:02:48 PM: src/components/routes/CdbActiveBet/ActiveBetList/JoinBetModal.jsx
11:02:48 PM: Line 24:33: '_takerTokenAccountBump' is assigned a value but never used no-unused-vars
11:02:48 PM: Line 55:6: React Hook useCallback has missing dependencies: 'closeModal', 'program.methods', 'setUpdataeTheList', and 'wallet.publicKey'. Either include them or remove the dependency array. If 'closeModal' changes too often, find the parent component that defines it and wrap that definition in useCallback react-hooks/exhaustive-deps
11:02:48 PM: src/components/routes/CdbActiveBet/ActiveBetList/SingleBet.jsx
11:02:48 PM: Line 45:7: 'Divider' is assigned a value but never used no-unused-vars
11:02:48 PM: src/components/routes/CdbActiveBet/filterbox/FilterBox.jsx
11:02:48 PM: Line 6:3: 'MenuItem' is defined but never used no-unused-vars
11:02:48 PM: Line 13:8: 'DropDownIcon' is defined but never used no-unused-vars
11:02:48 PM: Line 15:7: 'Leagues' is assigned a value but never used no-unused-vars
11:02:48 PM: Line 35:125: Expected '===' and instead saw '==' eqeqeq
11:02:48 PM: Line 41:65: Expected '===' and instead saw '==' eqeqeq
11:02:48 PM: Line 66:7: 'Select' is assigned a value but never used no-unused-vars
11:02:48 PM: src/components/routes/CdbCustombet/AddGameBox.jsx
11:02:48 PM: Line 6:3: 'MenuItem' is defined but never used no-unused-vars
11:02:48 PM: Line 7:13: 'MuiSelect' is defined but never used no-unused-vars
11:02:48 PM: Line 39:34: Expected '===' and instead saw '==' eqeqeq
11:02:48 PM: Line 40:28: Expected '===' and instead saw '==' eqeqeq
11:02:48 PM: Line 47:5: React Hook useCallback has an unnecessary dependency: 'betRate'. Either exclude it or remove the dependency array react-hooks/exhaustive-deps
11:02:48 PM: src/components/routes/custombet/AddGameBox.jsx
11:02:48 PM: Line 19:22: 'getLeagueList' is defined but never used no-unused-vars
11:02:48 PM: Line 19:37: 'determineResult' is defined but never used no-unused-vars
11:02:48 PM: Line 26:34: 'program' is assigned a value but never used no-unused-vars
11:02:48 PM: Line 37:32: Expected '===' and instead saw '==' eqeqeq
11:02:48 PM: Line 38:26: Expected '===' and instead saw '==' eqeqeq
11:02:48 PM: Line 43:5: React Hook useCallback has an unnecessary dependency: 'betRate'. Either exclude it or remove the dependency array react-hooks/exhaustive-deps
11:02:48 PM: Line 57:33: Expected '===' and instead saw '==' eqeqeq
11:02:48 PM: src/hooks/useWorkSpaceCdb.jsx
11:02:48 PM: Line 1:35: 'Provider' is defined but never used no-unused-vars
11:02:48 PM: Line 2:27: 'useConnection' is defined but never used no-unused-vars
11:02:48 PM: Line 14:9: The 'connection' object construction makes the dependencies of useMemo Hook (at line 15) change on every render. To fix this, wrap the initialization of 'connection' in its own useMemo() Hook react-hooks/exhaustive-deps
11:02:48 PM: Line 14:9: The 'connection' object construction makes the dependencies of useMemo Hook (at line 23) change on every render. To fix this, wrap the initialization of 'connection' in its own useMemo() Hook react-hooks/exhaustive-deps
11:02:48 PM: Line 16:19: React Hook useMemo does nothing when called with only one argument. Did you forget to pass an array of dependencies? react-hooks/exhaustive-deps
11:02:48 PM: src/hooks/useWorkspace.jsx
11:02:48 PM: Line 1:35: 'Provider' is defined but never used no-unused-vars
11:02:48 PM: Line 2:27: 'useConnection' is defined but never used no-unused-vars
11:02:48 PM: Line 14:9: The 'connection' object construction makes the dependencies of useMemo Hook (at line 15) change on every render. To fix this, wrap the initialization of 'connection' in its own useMemo() Hook react-hooks/exhaustive-deps
11:02:48 PM: Line 14:9: The 'connection' object construction makes the dependencies of useMemo Hook (at line 23) change on every render. To fix this, wrap the initialization of 'connection' in its own useMemo() Hook react-hooks/exhaustive-deps
11:02:48 PM: Line 16:19: React Hook useMemo does nothing when called with only one argument. Did you forget to pass an array of dependencies? react-hooks/exhaustive-deps
11:02:48 PM: src/libs/snackbar.js
11:02:48 PM: Line 17:1: Assign object to a variable before exporting as module default import/no-anonymous-default-export
11:02:48 PM: src/routes/slash/slash.jsx
11:02:48 PM: Line 45:11: 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
11:02:48 PM: Line 49:11: 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
11:02:48 PM: Line 53:11: 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
11:02:48 PM:
11:02:48 PM: ────────────────────────────────────────────────────────────────
11:02:48 PM: "build.command" failed
11:02:48 PM: ────────────────────────────────────────────────────────────────
11:02:48 PM:
11:02:48 PM: Error message
11:02:48 PM: Command failed with exit code 1: npm run build (https://ntl.fyi/exit-code-1)
11:02:48 PM:
11:02:48 PM: Error location
11:02:48 PM: In Build command from Netlify app:
11:02:48 PM: npm run build
11:02:48 PM:
11:02:48 PM: Resolved config
11:02:48 PM: build:
11:02:48 PM: command: npm run build
11:02:48 PM: commandOrigin: ui
11:02:48 PM: publish: /opt/build/repo/build
11:02:48 PM: publishOrigin: ui
11:02:48 PM: Caching artifacts
11:02:48 PM: Started saving node modules
11:02:48 PM: Finished saving node modules
11:02:48 PM: Started saving build plugins
11:02:48 PM: Finished saving build plugins
11:02:48 PM: Started saving yarn cache
11:02:57 PM: Finished saving yarn cache
11:02:57 PM: Started saving pip cache
11:02:57 PM: Finished saving pip cache
11:02:57 PM: Started saving emacs cask dependencies
11:02:57 PM: Finished saving emacs cask dependencies
11:02:57 PM: Started saving maven dependencies
11:02:57 PM: Finished saving maven dependencies
11:02:57 PM: Started saving boot dependencies
11:02:57 PM: Finished saving boot dependencies
11:02:57 PM: Started saving rust rustup cache
11:02:57 PM: Finished saving rust rustup cache
11:02:57 PM: Started saving go dependencies
11:02:57 PM: Finished saving go dependencies
11:02:58 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
11:02:58 PM: Creating deploy upload records
11:02:59 PM: Failing build: Failed to build site
11:02:59 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
11:02:59 PM: Finished processing build request in 3m54.743984439s