whenever i am initiating the build, it fails with and i see a “no workspace error found issue”, i have attached the log below
SOLUTIONS TRIED :
- removed package-lock.json from repository
- added “private”:“true” in package json
SITE NAME :
LOGS:
7:04:29 PM: Build ready to start
7:04:32 PM: build-image version: d2c6dbeac570350a387d832f64bc980dc964ad65 (focal)
7:04:32 PM: build-image tag: v4.8.0
7:04:32 PM: buildbot version: 4aaa27647e859c2d38cfbb25901ceae1e7f3eeae
7:04:32 PM: Fetching cached dependencies
7:04:33 PM: Failed to fetch cache, continuing with build
7:04:33 PM: Starting to prepare the repo for build
7:04:33 PM: No cached dependencies found. Cloning fresh repo
7:04:33 PM: git clone https://github.com/fooddo/webClient
7:04:35 PM: Preparing Git Reference refs/heads/master
7:04:35 PM: Parsing package.json dependencies
7:04:37 PM: Starting build script
7:04:37 PM: Installing dependencies
7:04:37 PM: Python version set to 2.7
7:04:39 PM: Downloading and installing node v16.15.1…
7:04:39 PM: Downloading https://nodejs.org/dist/v16.15.1/node-v16.15.1-linux-x64.tar.xz…
7:04:40 PM: Computing checksum with sha256sum
7:04:40 PM: Checksums matched!
7:04:44 PM: Now using node v16.15.1 (npm v8.11.0)
7:04:44 PM: Started restoring cached build plugins
7:04:44 PM: Finished restoring cached build plugins
7:04:44 PM: Attempting ruby version 2.7.2, read from environment
7:04:46 PM: Using ruby version 2.7.2
7:04:47 PM: Using PHP version 8.0
7:04:47 PM: No npm workspaces detected
7:04:47 PM: Started restoring cached node modules
7:04:47 PM: Finished restoring cached node modules
7:04:48 PM: Installing NPM modules using NPM version 8.11.0
7:04:48 PM: npm WARN config tmp This setting is no longer used. npm stores temporary files in a special
7:04:48 PM: npm WARN config location in the cache, and they are managed by
7:04:48 PM: npm WARN config cacache
.
7:04:49 PM: npm WARN config tmp This setting is no longer used. npm stores temporary files in a special
7:04:49 PM: npm WARN config location in the cache, and they are managed by
7:04:49 PM: npm WARN config cacache
.
7:04:52 PM: npm ERR! code ERESOLVE
7:04:52 PM: npm ERR! ERESOLVE unable to resolve dependency tree
7:04:52 PM: npm ERR!
7:04:52 PM: npm ERR! While resolving: fooddo@0.1.0
7:04:52 PM: Creating deploy upload records
7:04:52 PM: npm ERR! Found: react@17.0.2
7:04:52 PM: npm ERR! node_modules/react
7:04:52 PM: npm ERR! react@“^17.0.2” from the root project
7:04:52 PM: npm ERR!
7:04:52 PM: npm ERR! Could not resolve dependency:
7:04:52 PM: npm ERR! peer react@“^15.x.x” from react-html-table-to-excel@2.0.0
7:04:52 PM: npm ERR! node_modules/react-html-table-to-excel
7:04:52 PM: npm ERR! react-html-table-to-excel@“^2.0.0” from the root project
7:04:52 PM: npm ERR!
7:04:52 PM: npm ERR! Fix the upstream dependency conflict, or retry
7:04:52 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 1 (Search results for '"non-zero exit code: 1"' - Netlify Support Forums)
7:04:52 PM: npm ERR! this command with --force, or --legacy-peer-deps
7:04:52 PM: npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
7:04:52 PM: npm ERR!
7:04:52 PM: npm ERR! See /opt/buildhome/.npm/eresolve-report.txt for a full report.
7:04:52 PM: npm ERR! A complete log of this run can be found in:
7:04:52 PM: npm ERR! /opt/buildhome/.npm/_logs/2022-06-04T13_34_49_025Z-debug-0.log
7:04:52 PM: Error during NPM install
7:04:52 PM: Build was terminated: Build script returned non-zero exit code: 1
7:04:52 PM: Failing build: Failed to build site
7:04:53 PM: Finished processing build request in 20.561297309s
the issue still persists
would appreciate your help, thanks in advance