I tried the solutions you posted, but i am still seeing the error
Retrieving list of deployment files…
21:09:18.671 Downloading 63 deployment files…
21:09:19.268 Analyzing source code…
21:09:19.729 Installing build runtime…
21:09:21.795 Build runtime installed: 2066.017ms
21:09:23.506 Looking up build cache…
21:09:23.556 Build cache not found
21:09:24.257 Detected package.json
21:09:24.257 Installing dependencies…
21:09:24.732 npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I’ll try to do my best with it!
21:09:52.465 > core-js@2.6.12 postinstall /vercel/workpath0/node_modules/babel-runtime/node_modules/core-js
21:09:52.465 > node -e “try{require(’./postinstall’)}catch(e){}”
21:09:52.566 > core-js@3.9.1 postinstall /vercel/workpath0/node_modules/core-js
21:09:52.566 > node -e “try{require(’./postinstall’)}catch(e){}”
21:09:52.634 > core-js-pure@3.9.1 postinstall /vercel/workpath0/node_modules/core-js-pure
21:09:52.634 > node -e “try{require(’./postinstall’)}catch(e){}”
21:09:52.719 > ejs@2.7.4 postinstall /vercel/workpath0/node_modules/ejs
21:09:52.719 > node ./postinstall.js
21:09:54.562 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/webpack-dev-server/node_modules/fsevents):
21:09:54.562 npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“x64”})
21:09:54.569 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/watchpack-chokidar2/node_modules/fsevents):
21:09:54.569 npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“x64”})
21:09:54.577 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents):
21:09:54.577 npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“x64”})
21:09:54.584 added 1954 packages from 787 contributors in 29.891s
21:09:55.725 135 packages are looking for funding
21:09:55.725 run npm fund
for details
21:09:55.955 Running “npm run build”
21:09:56.162 > spotify-clone@0.1.0 build /vercel/workpath0
21:09:56.162 > react-scripts build
21:09:57.520 Creating an optimized production build…
21:10:19.203 Treating warnings as errors because process.env.CI = true.
21:10:19.203 Most CI servers set it automatically.
21:10:19.203 Failed to compile.
21:10:19.204 src/Footer.js
21:10:19.204 Line 1:28: ‘useState’ is defined but never used no-unused-vars
21:10:19.204 Line 15:12: ‘token’ is assigned a value but never used no-unused-vars
21:10:19.204 Line 31:6: React Hook useEffect has a missing dependency: ‘dispatch’. Either include it or remove the dependency array react-hooks/exhaustive-deps
21:10:19.204 src/Header.js
21:10:19.204 Line 6:10: ‘useEffect’ is defined but never used no-unused-vars
21:10:19.204 Line 9:20: ‘dispatch’ is assigned a value but never used no-unused-vars
21:10:19.204 src/Sidebar.js
21:10:19.204 Line 7:10: ‘getTokenFromResponse’ is defined but never used no-unused-vars
21:10:19.204 Line 11:25: ‘dispatch’ is assigned a value but never used no-unused-vars
21:10:19.204 src/reducer.js
21:10:19.204 Line 1:10: ‘findAllByDisplayValue’ is defined but never used no-unused-vars
21:10:19.235 npm ERR! code ELIFECYCLE
21:10:19.235 npm ERR! errno 1
21:10:19.238 npm ERR! spotify-clone@0.1.0 build: react-scripts build
21:10:19.239 npm ERR! Exit status 1
21:10:19.239 npm ERR!
21:10:19.239 npm ERR! Failed at the spotify-clone@0.1.0 build script.
21:10:19.239 npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
21:10:19.253 npm ERR! A complete log of this run can be found in:
21:10:19.253 npm ERR! /vercel/.npm/_logs/2021-03-08T15_40_19_239Z-debug.log
21:10:19.259 Error: Command “npm run build” exited with 1
21:10:21.979 Done with “package.json”
I’ve been trying to find the solution for almost 2 days now
Some please help me out.