Build Failed with "non-zero exit code: 2" error

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
1 Like

I also have this issue, I am replying to get a notification if anyone answers :slight_smile:

i found the solution
go to site settings and add env variable
name of the varibale must be CI and the value of that must be false
this error cause by linter warnings and because of CI is true by default, all of warnings change to errors
and consider that this solution must be temporary and it’s better that solve all of warnings
if there is any question let me know

3 Likes

Doesnt seem to work for me, it just returns this now:

9:10:51 PM: Build ready to start
9:10:53 PM: build-image version: d2c6dbeac570350a387d832f64bc980dc964ad65 (focal)
9:10:53 PM: build-image tag: v4.8.0
9:10:53 PM: buildbot version: 17f6c1ab2fe6d61574ce02b038041b816bf6c085
9:10:54 PM: Fetching cached dependencies
9:10:54 PM: Starting to download cache of 676.1KB
9:10:54 PM: Finished downloading cache in 316.646098ms
9:10:54 PM: Starting to extract cache
9:10:54 PM: Finished extracting cache in 16.892033ms
9:10:54 PM: Finished fetching cache in 333.850021ms
9:10:54 PM: Starting to prepare the repo for build
9:10:54 PM: Preparing Git Reference refs/heads/master
9:10:55 PM: Parsing package.json dependencies
9:10:56 PM: Starting build script
9:10:56 PM: Installing dependencies
9:10:56 PM: Python version set to 2.7
9:10:57 PM: Downloading and installing node v16.15.0…
9:10:57 PM: Downloading https://nodejs.org/dist/v16.15.0/node-v16.15.0-linux-x64.tar.xz
9:10:58 PM: Computing checksum with sha256sum
9:10:58 PM: Checksums matched!
9:11:01 PM: Now using node v16.15.0 (npm v8.5.5)
9:11:01 PM: Started restoring cached build plugins
9:11:01 PM: Finished restoring cached build plugins
9:11:01 PM: Attempting ruby version 2.7.2, read from environment
9:11:03 PM: Using ruby version 2.7.2
9:11:03 PM: Using PHP version 8.0
9:11:03 PM: Started restoring cached go cache
9:11:03 PM: Finished restoring cached go cache
9:11:03 PM: go version go1.16.5 linux/amd64
9:11:03 PM: go version go1.16.5 linux/amd64
9:11:03 PM: Installing missing commands
9:11:03 PM: Verify run directory
9:11:05 PM: ​
9:11:05 PM: ────────────────────────────────────────────────────────────────
9:11:05 PM: Netlify Build
9:11:05 PM: ────────────────────────────────────────────────────────────────
9:11:05 PM: ​
9:11:05 PM: ❯ Version
9:11:05 PM: @netlify/build 27.1.3
9:11:05 PM: ​
9:11:05 PM: ❯ Flags
9:11:05 PM: baseRelDir: true
9:11:05 PM: buildId: 628a98cbef672b1aa2cab65f
9:11:05 PM: deployId: 628a98cbef672b1aa2cab661
9:11:05 PM: ​
9:11:05 PM: ❯ Current directory
9:11:05 PM: /opt/build/repo
9:11:05 PM: ​
9:11:05 PM: ❯ Config file
9:11:05 PM: No config file was defined: using default values.
9:11:05 PM: ​
9:11:05 PM: ❯ Context
9:11:05 PM: production
9:11:05 PM: ​
9:11:05 PM: ────────────────────────────────────────────────────────────────
9:11:05 PM: 1. Build command from Netlify app
9:11:05 PM: ────────────────────────────────────────────────────────────────
9:11:05 PM: ​
9:11:05 PM: $ npm run generate
9:11:05 PM: npm ERR! code ENOENT
9:11:05 PM: npm ERR! syscall open
9:11:05 PM: npm ERR! path /opt/build/repo/package.json
9:11:05 PM: npm ERR! errno -2
9:11:05 PM: npm ERR! enoent ENOENT: no such file or directory, open ‘/opt/build/repo/package.json’
9:11:05 PM: npm ERR! enoent This is related to npm not being able to find a file.
9:11:05 PM: npm ERR! enoent
9:11:05 PM: npm ERR! A complete log of this run can be found in:
9:11:05 PM: npm ERR! /opt/buildhome/.npm/_logs/2022-05-22T20_11_05_522Z-debug-0.log
9:11:05 PM: ​
9:11:05 PM: ────────────────────────────────────────────────────────────────
9:11:05 PM: “build.command” failed
9:11:05 PM: ────────────────────────────────────────────────────────────────
9:11:05 PM: ​
9:11:05 PM: Error message
9:11:05 PM: Command failed with exit code 254: npm run generate (Search results for '"non-zero exit code: 254"' - Netlify Support Forums)
9:11:05 PM: ​
9:11:05 PM: Error location
9:11:05 PM: In Build command from Netlify app:
9:11:05 PM: npm run generate
9:11:05 PM: ​
9:11:05 PM: Resolved config
9:11:05 PM: build:
9:11:05 PM: command: npm run generate
9:11:05 PM: commandOrigin: ui
9:11:05 PM: environment:
9:11:05 PM: - CI
9:11:05 PM: publish: /opt/build/repo/dist
9:11:05 PM: publishOrigin: ui
9:11:06 PM: Caching artifacts
9:11:06 PM: Started saving build plugins
9:11:06 PM: Finished saving build plugins
9:11:06 PM: Started saving pip cache
9:11:06 PM: Finished saving pip cache
9:11:06 PM: Started saving emacs cask dependencies
9:11:06 PM: Finished saving emacs cask dependencies
9:11:06 PM: Started saving maven dependencies
9:11:06 PM: Finished saving maven dependencies
9:11:06 PM: Started saving boot dependencies
9:11:06 PM: Finished saving boot dependencies
9:11:06 PM: Started saving rust rustup cache
9:11:06 PM: Finished saving rust rustup cache
9:11:07 PM: Creating deploy upload records
9:11:06 PM: Started saving go dependencies
9:11:06 PM: Finished saving go dependencies
9:11:07 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
9:11:08 PM: Failing build: Failed to build site
9:11:08 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)
9:11:08 PM: Finished processing build request in 14.501352137s

the error says it cannot find the package.json
search for this
npm ERR! enoent ENOENT: no such file or directory, open ‘/opt/build/repo/package.json

Hey @yemoji

This means you have defined a variable (determineResult in this instance) and have not used within the page code. In all affected pages (numerous it appears, though with difference variables) comment defined variable(s) out, remove them completely, or use them with the code.

Similar to that above, the variable Like has a value, however it never gets used. Comment the variable out, remove it, or use it. Again, this happens in multiple files with different variable names.

This is saying you have used the equality `== operator instead of using the strict equality `===` operator. Change the operators to those expected.

For an error such as this, the log tells you how to fix it:

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


This is not a solution. What this does is simply ignore the errors in your code. You are better, especially in the long run, to fix errors like this rather than ignore them.

For instance, imaging you have the following variables

let tStr = "1"
let nStr = 1

If you then compare these using the equality operator it results in true

tStr == nStr    // is true

but if you compare them with the strict equality operator it results in false

tStr === nStr   // is false

Issues like this can break other code.

thanks for your replying, but also i know about the warning
The problem caused to CI=true as default in netlify and behave the all warnings like errors so i changed that, and everything seem ok then