I am trying to deploy a site from a monorepo exercises/apps/carrito-react at main · SFToro/exercises · GitHub
And i keep getting an error about eslint-config-prettier missing peer dependency eslint, and:
- Eslint is in the package.json
- I also tried removing eslint-config-prettier but same error
This happens either if i set NODE_ENV to production.
This is my package.json
{
"name": "carrito-react",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/react": "^18.0.27",
"@types/react-dom": "^18.0.10",
"@vitejs/plugin-react-swc": "^3.0.0",
"eslint": "^8.35.0",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-n": "^15.0.0",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-react": "^7.32.2",
"vite": "^4.1.0"
}
}
And this is the build log
8:06:31 PM: build-image version: 6c82004ef0368b3a0232c6837cead23188bb347e (focal)
8:06:31 PM: buildbot version: 0dfbdb6e6e614fd26450cfc6bacb47c4c6fd9626
8:06:31 PM: Building without cache
8:06:31 PM: Starting to prepare the repo for build
8:06:31 PM: No cached dependencies found. Cloning fresh repo
8:06:31 PM: git clone --filter=blob:none https://github.com/SFToro/exercises
8:06:31 PM: Preparing Git Reference refs/heads/main
8:06:33 PM: Parsing package.json dependencies
8:06:34 PM: ❯ Initial build environmentbaseRelDir: truebranch: maincontext: productioncwd: /opt/build/repofeatureFlags: []mode: buildbotrepositoryRoot: /opt/build/repositeId: 8bf52eb8-9e47-45c4-8f0e-f0c689c02646❯ UI build settingsbaseRelDir: truebuild: base: apps/carrito-react command: pnpm build environment: - NETLIFY_BUILD_DEBUG - NODE_VERSION publish: dist❯ Resolved build environmentbranch: mainbuildDir: /opt/build/repo/apps/carrito-reactcontext: productionenv: []❯ Resolved configbuild: base: /opt/build/repo/apps/carrito-react command: pnpm build commandOrigin: ui environment: - NETLIFY_BUILD_DEBUG - NODE_VERSION publish: /opt/build/repo/apps/carrito-react/dist publishOrigin: ui
8:06:34 PM: Different publish path detected, going to use the one specified in the Netlify configuration file: 'apps/carrito-react/dist' versus 'dist' in the Netlify UI
8:06:34 PM: Starting to install dependencies
8:06:34 PM: Downloading and installing node v18.15.0...
8:06:35 PM: Downloading https://nodejs.org/dist/v18.15.0/node-v18.15.0-linux-x64.tar.xz...
8:06:35 PM: Computing checksum with sha256sum
8:06:35 PM: Checksums matched!
8:06:37 PM: Now using node v18.15.0 (npm v9.5.0)
8:06:37 PM: Enabling Node.js Corepack
8:06:37 PM: Started restoring cached build plugins
8:06:37 PM: Finished restoring cached build plugins
8:06:37 PM: Started restoring cached corepack dependencies
8:06:37 PM: Finished restoring cached corepack dependencies
8:06:38 PM: Found pnpm version (7.13.4) that doesn't match expected ()Usage Error: Invalid package manager specification in CLI arguments; expected a semver version, range, or tag
8:06:38 PM: $ corepack prepare [--activate] [--all] [--json] [-o,--output] ...
8:06:38 PM: pnpm workspaces detected
8:06:38 PM: Installing npm packages using pnpm version 7.13.4
8:06:38 PM: Scope: all 5 workspace projects
8:06:38 PM: ../.. | WARN Ignoring not compatible lockfile at /opt/build/repo/pnpm-lock.yaml
8:06:38 PM: ../.. | Progress: resolved 1, reused 0, downloaded 0, added 0
8:06:39 PM: ../.. | Progress: resolved 76, reused 0, downloaded 62, added 0
8:06:40 PM: ../.. | Progress: resolved 169, reused 0, downloaded 125, added 0
8:06:41 PM: ../.. | Progress: resolved 251, reused 0, downloaded 220, added 0
8:06:42 PM: ../.. | +223 ++++++++++++++++++++++
8:06:42 PM: Packages are copied from the content-addressable store to the virtual store.
8:06:42 PM: Content-addressable store is at: /opt/build/.pnpm-store/v3
8:06:42 PM: Virtual store is at: ../../node_modules/.pnpm
8:06:42 PM: .../node_modules/@swc/core postinstall$ node postinstall.js
8:06:42 PM: .../esbuild@0.17.14/node_modules/esbuild postinstall$ node install.js
8:06:42 PM: .../esbuild@0.17.14/node_modules/esbuild postinstall: Done
8:06:42 PM: .../node_modules/@swc/core postinstall: Done
8:06:42 PM: ../.. | Progress: resolved 252, reused 0, downloaded 222, added 223, done
8:06:43 PM: dependencies:
8:06:43 PM: + react 18.2.0
8:06:43 PM: + react-dom 18.2.0
8:06:43 PM: devDependencies:
8:06:43 PM: + @types/react 18.0.31
8:06:43 PM: + @types/react-dom 18.0.11
8:06:43 PM: Failed during stage 'Install dependencies': dependency_installation script returned non-zero exit code: 1
8:06:43 PM: + @vitejs/plugin-react-swc 3.2.0
8:06:43 PM: + eslint 8.37.0
8:06:43 PM: + eslint-config-standard 17.0.0
8:06:43 PM: + eslint-plugin-import 2.27.5
8:06:43 PM: + eslint-plugin-n 15.7.0
8:06:43 PM: + eslint-plugin-promise 6.1.1
8:06:43 PM: + eslint-plugin-react 7.32.2
8:06:43 PM: + vite 4.2.1
8:06:43 PM: ERR_PNPM_PEER_DEP_ISSUES Unmet peer dependencies
8:06:43 PM: apps/carrito-svelte
8:06:43 PM: └─┬ eslint-config-prettier 8.8.0
8:06:43 PM: └── ✕ missing peer eslint@>=7.0.0
8:06:43 PM: Peer dependencies that should be installed:
8:06:43 PM: eslint@>=7.0.0
8:06:43 PM: hint: If you want peer dependencies to be automatically installed, add "auto-install-peers=true" to an .npmrc file at the root of your project.
8:06:43 PM: hint: If you don't want pnpm to fail on peer dependency issues, add "strict-peer-dependencies=false" to an .npmrc file at the root of your project.
8:06:43 PM: Error during pnpm install
8:06:43 PM: Build was terminated: dependency_installation script returned non-zero exit code: 1
8:06:43 PM: Failing build: Failed to install dependencies
8:06:43 PM: Finished processing build request in 12.285s
Thanks in advance for any help