how do i fix the following vercel deployment: [09:00:45.653] Running build in Washington, D.C., USA (East) – iad1
[09:00:45.766] Cloning github.com/LeMill-Vycta/chec-commerce-nextjs (Branch: main, Commit: bd40ed0)
[09:00:46.100] Previous build cache not available
[09:00:46.353] Cloning completed: 585.835ms
[09:00:46.618] Running "vercel build"
[09:00:47.055] Vercel CLI 34.2.7
[09:00:47.379] Running "install" command: npm i --legacy-peer-deps...
[09:01:08.308] npm WARN EBADENGINE Unsupported engine {
[09:01:08.308] npm WARN EBADENGINE package: 'react-lottie@1.2.3',
[09:01:08.308] npm WARN EBADENGINE required: { npm: '^3.0.0' },
[09:01:08.308] npm WARN EBADENGINE current: { node: 'v20.12.2', npm: '10.5.0' }
[09:01:08.308] npm WARN EBADENGINE }
[09:01:13.691] npm WARN deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
[09:01:13.934] npm WARN deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
[09:01:14.014] npm WARN deprecated @humanwhocodes/config-array@0.5.0: Use @eslint/config-array instead
[09:01:14.064] npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
[09:01:14.151] npm WARN deprecated @humanwhocodes/object-schema@1.2.0: Use @eslint/object-schema instead
[09:01:14.234] npm WARN deprecated glob@7.1.7: Glob versions prior to v9 are no longer supported
[09:01:14.298] npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
[09:01:17.760] npm WARN deprecated core-js@2.6.11: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
[09:01:17.834] npm WARN deprecated core-js-pure@3.17.3: core-js-pure@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js-pure.
[09:01:18.488]
[09:01:18.488] added 566 packages, and audited 567 packages in 31s
[09:01:18.489]
[09:01:18.489] 77 packages are looking for funding
[09:01:18.489] run npm fund for details
[09:01:18.563]
[09:01:18.563] 23 vulnerabilities (1 low, 8 moderate, 8 high, 6 critical)
[09:01:18.564]
[09:01:18.564] To address issues that do not require attention, run:
[09:01:18.564] npm audit fix
[09:01:18.564]
[09:01:18.564] To address all issues possible (including breaking changes), run:
[09:01:18.564] npm audit fix --force
[09:01:18.564]
[09:01:18.564] Some issues need review, and may require choosing
[09:01:18.564] a different dependency.
[09:01:18.564]
[09:01:18.564] Run for details.
[09:01:18.617] Detected Next.js version: 11.1.3
[09:01:18.622] Running "yarn run build"
[09:01:18.919] yarn run v1.22.19
[09:01:18.945] $ next build
[09:01:19.433] info - Loaded env from /vercel/path0/.env
[09:01:19.496] info - Using webpack 5. Reason: Enabled by default
[09:01:19.650] Attention: Next.js now collects completely anonymous telemetry regarding usage.
[09:01:19.650] This information is used to shape Next.js' roadmap and prioritize features.
[09:01:19.650] You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
[09:01:19.650]
[09:01:19.650]
[09:01:19.666] Browserslist: caniuse-lite is outdated. Please run:
[09:01:19.666] npx browserslist@latest --update-db
[09:01:19.666]
[09:01:19.666] Why you should do it regularly:
[09:01:19.666]
[09:01:19.709] info - Checking validity of types...
[09:01:20.913] Browserslist: caniuse-lite is outdated. Please run:
[09:01:20.913] npx browserslist@latest --update-db
[09:01:20.913]
[09:01:20.913] Why you should do it regularly:
[09:01:20.913]
[09:01:22.629]
[09:01:22.629] ./pages/about.js
[09:01:22.629] 36:15 Warning: Do not use . Use Image from 'next/image' instead. See . @next/next/no-img-element
[09:01:22.629] 47:15 Warning: Do not use . Use Image from 'next/image' instead. See . @next/next/no-img-element
[09:01:22.629] 100:15 Warning: Do not use . Use Image from 'next/image' instead. See . @next/next/no-img-element
[09:01:22.630] 111:15 Warning: Do not use . Use Image from 'next/image' instead. See . @next/next/no-img-element
[09:01:22.630]
[09:01:22.630] ./pages/account/[id].js
[09:01:22.630] 82:7 Warning: Do not use . Use Image from 'next/image' instead. See . @next/next/no-img-element
[09:01:22.630] 188:19 Warning: Do not use . Use Image from 'next/image' instead. See . @next/next/no-img-element
[09:01:22.630]
[09:01:22.630] ./pages/checkout/index.js
[09:01:22.630] 558:17 Warning: Do not use . Use Image from 'next/image' instead. See . @next/next/no-img-element
[09:01:22.630] 748:31 Warning: Do not use . Use Image from 'next/image' instead. See . @next/next/no-img-element
[09:01:22.630]
[09:01:22.630] ./pages/product/[permalink].js
[09:01:22.630] 86:15 Warning: Do not use . Use Image from 'next/image' instead. See . @next/next/no-img-element
[09:01:22.630] 86:15 Warning: img elements must have an alt prop, either with meaningful text, or an empty string for decorative images. jsx-a11y/alt-text
[09:01:22.630] 106:13 Warning: Do not use . Use Image from 'next/image' instead. See . @next/next/no-img-element
[09:01:22.630] 106:13 Warning: img elements must have an alt prop, either with meaningful text, or an empty string for decorative images. jsx-a11y/alt-text
[09:01:22.630] 120:13 Warning: Do not use . Use Image from 'next/image' instead. See . @next/next/no-img-element
[09:01:22.630] 120:13 Warning: img elements must have an alt prop, either with meaningful text, or an empty string for decorative images. jsx-a11y/alt-text
[09:01:22.630]
[09:01:22.630] ./components/cart/Cart.js
[09:01:22.631] 100:21 Warning: Do not use . Use Image from 'next/image' instead. See . @next/next/no-img-element
[09:01:22.631] 146:21 Warning: Do not use . Use Image from 'next/image' instead. See . @next/next/no-img-element
[09:01:22.631]
[09:01:22.631] ./components/cart/CartItem.js
[09:01:22.631] 54:19 Warning: Do not use . Use Image from 'next/image' instead. See . @next/next/no-img-element
[09:01:22.631] 58:19 Warning: Do not use . Use Image from 'next/image' instead. See . @next/next/no-img-element
[09:01:22.631]
[09:01:22.631] ./components/checkout/Confirm.js
[09:01:22.631] 39:9 Warning: Do not use . Use Image from 'next/image' instead. See . @next/next/no-img-element
[09:01:22.631] 108:19 Warning: Do not use . Use Image from 'next/image' instead. See . @next/next/no-img-element
[09:01:22.631]
[09:01:22.631] ./components/common/Footer.js
[09:01:22.631] 103:15 Warning: Do not use . Use Image from 'next/image' instead. See . @next/next/no-img-element
[09:01:22.631]
[09:01:22.631] ./components/common/Header.js
[09:01:22.631] 195:13 Warning: Do not use . Use Image from 'next/image' instead. See . @next/next/no-img-element
[09:01:22.636] 203:17 Warning: Do not use . Use Image from 'next/image' instead. See . @next/next/no-img-element
[09:01:22.636]
[09:01:22.636] ./components/common/SocialMedia.js
[09:01:22.636] 88:21 Warning: Do not use . Use Image from 'next/image' instead. See . @next/next/no-img-element
[09:01:22.636]
[09:01:22.636] ./components/common/atoms/Dropdown.js
[09:01:22.636] 25:11 Warning: Do not use . Use Image from 'next/image' instead. See . @next/next/no-img-element
[09:01:22.636]
[09:01:22.636] ./components/homepage/HomeBanner.js
[09:01:22.636] 17:13 Warning: Do not use . Use Image from 'next/image' instead. See . @next/next/no-img-element
[09:01:22.636] 17:13 Warning: img elements must have an alt prop, either with meaningful text, or an empty string for decorative images. jsx-a11y/alt-text
[09:01:22.637]
[09:01:22.637] ./components/homepage/ProductsBanner.js
[09:01:22.637] 26:15 Warning: Do not use . Use Image from 'next/image' instead. See . @next/next/no-img-element
[09:01:22.637] 26:15 Warning: img elements must have an alt prop, either with meaningful text, or an empty string for decorative images. jsx-a11y/alt-text
[09:01:22.637]
[09:01:22.637] ./components/productAssets/ClientReview.js
[09:01:22.637] 79:13 Warning: Do not use . Use Image from 'next/image' instead. See . @next/next/no-img-element
[09:01:22.637]
[09:01:22.637] ./components/productAssets/ExploreBanner.js
[09:01:22.637] 82:23 Warning: Do not use . Use Image from 'next/image' instead. See . @next/next/no-img-element
[09:01:22.637] 82:23 Warning: img elements must have an alt prop, either with meaningful text, or an empty string for decorative images. jsx-a11y/alt-text
[09:01:22.637]
[09:01:22.637] ./components/productAssets/ReviewStars.js
[09:01:22.637] 8:11 Warning: Do not use . Use Image from 'next/image' instead. See . @next/next/no-img-element
[09:01:22.637] 15:13 Warning: Do not use . Use Image from 'next/image' instead. See . @next/next/no-img-element
[09:01:22.637]
[09:01:22.637] ./lib/collections.js
[09:01:22.637] 1:1 Warning: Assign array to a variable before exporting as module default import/no-anonymous-default-export
[09:01:22.637]
[09:01:22.637] info - Need to disable some ESLint rules? Learn more here:
[09:01:22.637] info - Creating an optimized production build...
[09:01:22.828] Browserslist: caniuse-lite is outdated. Please run:
[09:01:22.828] npx browserslist@latest --update-db
[09:01:22.828]
[09:01:22.828] Why you should do it regularly:
[09:01:22.828]
[09:01:22.991] node:internal/crypto/hash:80
[09:01:22.992] this[kHandle] = new _Hash(algorithm, xofLen, algorithmId, getHashCache());
[09:01:22.992] ^
[09:01:22.992]
[09:01:22.992] Error: error:0308010C:digital envelope routines::unsupported
[09:01:22.992] at new Hash (node:internal/crypto/hash:80:19)
[09:01:22.992] at Object.createHash (node:crypto:139:10)
[09:01:22.992] at BulkUpdateDecorator.hashFactory (/vercel/path0/node_modules/next/dist/compiled/webpack/bundle5.js:138971:18)
[09:01:22.992] at BulkUpdateDecorator.update (/vercel/path0/node_modules/next/dist/compiled/webpack/bundle5.js:138872:50)
[09:01:22.992] at /vercel/path0/node_modules/next/dist/compiled/webpack/bundle5.js:59321:9
[09:01:22.992] at processTicksAndRejections (node:internal/process/task_queues:82:21)
[09:01:22.992] at runNextTicks (node:internal/process/task_queues:64:3)
[09:01:22.992] at process.processImmediate (node:internal/timers:449:9) {
[09:01:22.992] opensslErrorStack: [
[09:01:22.992] 'error:03000086:digital envelope routines::initialization error',
[09:01:22.992] 'error:0308010C:digital envelope routines::unsupported'
[09:01:22.992] ],
[09:01:22.992] library: 'digital envelope routines',
[09:01:22.992] reason: 'unsupported',
[09:01:22.992] code: 'ERR_OSSL_EVP_UNSUPPORTED'
[09:01:22.992] ▲ System message: 💡 The "unsupported digital envelope" problem may be resolved by adding to your env vars
[09:01:22.992] }
[09:01:22.992]
[09:01:22.992] Node.js v20.12.2
[09:01:23.014] error Command failed with exit code 1.
[09:01:23.014] info Visit for documentation about this command.
[09:01:23.026] Error: Command "yarn run build" exited with 1
[09:01:23.244]