i built a project usiing react and i upload it to netlify so i can show t on internet its working on local host just fine bout when i deploy it n netlify i get this error
9:33:52 PM: build-image version: bb0c0791f5fe3f33dad765dcb71d506f5ea22499 (noble)
9:33:52 PM: buildbot version: a980cf9efb6f102593227183a239d2758329d6aa
9:33:52 PM: Fetching cached dependencies
9:33:52 PM: Failed to fetch cache, continuing with build
9:33:53 PM: Starting to prepare the repo for build
9:33:53 PM: No cached dependencies found. Cloning fresh repo
9:33:53 PM: git clone --filter=blob:none https://github.com/Mhatem1995/WilliamFrontend
9:33:53 PM: Preparing Git Reference refs/heads/main
9:33:55 PM: Starting to install dependencies
9:33:55 PM: Python version set to 3.13.1
9:33:55 PM: Ruby version set to 2.7.2
9:33:56 PM: mise go@1.19 install
9:33:56 PM: mise go@1.19 download go1.19.linux-amd64.tar.gz
9:33:58 PM: mise go@1.19 checksum go1.19.linux-amd64.tar.gz
9:33:58 PM: mise go@1.19 extract go1.19.linux-amd64.tar.gz
9:34:00 PM: mise go@1.19 go version
9:34:00 PM: mise go@1.19 go version go1.19 linux/amd64
9:34:00 PM: mise go@1.19 ✓ installed
9:34:00 PM: Go version set to 1.19
9:34:01 PM: Using PHP version 8.3
9:34:02 PM: v18.20.5 is already installed.
9:34:02 PM: Now using node v18.20.5 (npm v10.8.2)
9:34:02 PM: Enabling Node.js Corepack
9:34:02 PM: Started restoring cached build plugins
9:34:02 PM: Finished restoring cached build plugins
9:34:02 PM: Started restoring cached corepack dependencies
9:34:02 PM: Finished restoring cached corepack dependencies
9:34:02 PM: No npm workspaces detected
9:34:02 PM: Started restoring cached node modules
9:34:02 PM: Finished restoring cached node modules
9:34:02 PM: Installing npm packages using npm version 10.8.2
9:34:03 PM: Failed during stage 'Install dependencies': dependency_installation script returned non-zero exit code: 1
9:34:03 PM: npm error code ERESOLVE
9:34:03 PM: npm error ERESOLVE could not resolve
9:34:03 PM: npm error
9:34:03 PM: npm error While resolving: @testing-library/react@13.4.0
9:34:03 PM: npm error Found: react@19.0.0
9:34:03 PM: npm error node_modules/react
9:34:03 PM: npm error react@"^19.0.0" from the root project
9:34:03 PM: npm error peerOptional react@"^16.9.0 || ^17.0.0 || ^18 || ^19" from @reduxjs/toolkit@2.5.0
9:34:03 PM: npm error node_modules/@reduxjs/toolkit
9:34:03 PM: npm error @reduxjs/toolkit@"^2.5.0" from the root project
9:34:03 PM: npm error 6 more (react-dom, react-redux, react-router, react-router-dom, ...)
9:34:03 PM: npm error
9:34:03 PM: npm error Could not resolve dependency:
9:34:03 PM: npm error peer react@"^18.0.0" from @testing-library/react@13.4.0
9:34:03 PM: npm error node_modules/@testing-library/react
9:34:03 PM: npm error @testing-library/react@"^13.4.0" from the root project
9:34:03 PM: npm error
9:34:03 PM: npm error Conflicting peer dependency: react@18.3.1
9:34:03 PM: npm error node_modules/react
9:34:03 PM: npm error peer react@"^18.0.0" from @testing-library/react@13.4.0
9:34:03 PM: npm error node_modules/@testing-library/react
9:34:03 PM: npm error @testing-library/react@"^13.4.0" from the root project
9:34:03 PM: npm error
9:34:03 PM: npm error Fix the upstream dependency conflict, or retry
9:34:03 PM: npm error this command with --force or --legacy-peer-deps
9:34:03 PM: npm error to accept an incorrect (and potentially broken) dependency resolution.
9:34:03 PM: npm error
9:34:03 PM: npm error
9:34:03 PM: npm error For a full report see:
9:34:03 PM: npm error /opt/buildhome/.npm/_logs/2025-01-15T19_34_02_709Z-eresolve-report.txt
9:34:03 PM: npm error A complete log of this run can be found in: /opt/buildhome/.npm/_logs/2025-01-15T19_34_02_709Z-debug-0.log
9:34:03 PM: Error during npm install
9:34:03 PM: Failing build: Failed to install dependencies
9:34:04 PM: Finished processing build request in 11.338s