Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Can't resolve payload dependency when installing vercel blob adapter.

default discord avatar
ajskates98last year
3

Tried installing the vercel blob adapter from the beta docs but keep encountering this error.



npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: project@0.1.0
npm error Found: payload@3.0.0-beta.55
npm error node_modules/payload
npm error   payload@"3.0.0-beta.55" from the root project
npm error
npm error Could not resolve dependency:
npm error peer payload@"3.0.0-beta.29" from @payloadcms/storage-vercel-blob@3.0.0-beta.29
npm error node_modules/@payloadcms/storage-vercel-blob
npm error   @payloadcms/storage-vercel-blob@"*" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /home/aj/.npm/_logs/2024-07-15T17_07_52_232Z-eresolve-report.txt

npm error A complete log of this run can be found in: /home/aj/.npm/_logs/2024-07-15T17_07_52_232Z-debug-0.log
  • discord user avatar
    denolfe
    last year

    Ensure all payload related packages are set to the same beta version. This error looks like you may have some that are not correct.



    Looks like you just updated the payload version and not the storage plugin

  • default discord avatar
    ajskates98last year

    This was on a fresh install of the storage plugin, not sure how to get that on beta.55?



    I switched to pnpm and got it all installed fine. The vercel blob adapter now works and the admin pages work when deployed on vercel. When runing locally however I get this NextJS error:


    Error: Mismatching payload dependency versions found: payload@3.0.0-beta.55, @payloadcms/plugin-cloud-storage@3.0.0-beta.29. All payload and @payloadcms/* packages must have the same version. This is an error with your set-up, caused by you, not a bug in payload. Please go to your package.json and ensure all payload and @payloadcms/* packages have the same version.


    Oh I fixed it by deleting node_modules, pnpm lockfile and then manually editing the vercel blob storage version in the package.json.



    Weird mistake on my part. Not sure how I ended up with that version

  • default discord avatar
    macsim_last year

    Hey 👋



    I'm facing the same error here :



    but dont understand why it's not working



    {
      "name": "XXXX",
      "version": "1.0.0",
      "description": "A blank template to get started with Payload 3.0",
      "license": "MIT",
      "type": "module",
      "scripts": {
        "build": "cross-env NODE_OPTIONS=--no-deprecation next build",
        "dev": "cross-env NODE_OPTIONS=--no-deprecation next dev",
        "devsafe": "rm -rf .next && cross-env NODE_OPTIONS=--no-deprecation next dev",
        "generate:types": "payload generate:types",
        "lint": "cross-env NODE_OPTIONS=--no-deprecation next lint",
        "payload": "cross-env NODE_OPTIONS=--no-deprecation payload",
        "start": "cross-env NODE_OPTIONS=--no-deprecation next start"
      },
      "dependencies": {
        "@payloadcms/db-mongodb": "beta",
        "@payloadcms/next": "beta",
        "@payloadcms/plugin-cloud": "beta",
        "@payloadcms/richtext-lexical": "beta",
        "cross-env": "^7.0.3",
        "graphql": "^16.8.1",
        "next": "15.0.0-rc.0",
        "payload": "beta",
        "react": "^19.0.0-rc-6230622a1a-20240610",
        "react-dom": "^19.0.0-rc-6230622a1a-20240610",
        "sharp": "0.32.6"
      },
      "devDependencies": {
        "@types/node": "^20.12.12",
        "@types/react": "npm:types-react@19.0.0-rc.0",
        "@types/react-dom": "npm:types-react-dom@19.0.0-rc.0",
        "dotenv": "^16.4.5",
        "eslint": "^8",
        "eslint-config-next": "15.0.0-rc.0",
        "typescript": "5.5.2"
      },
      "engines": {
        "node": "^18.20.2 || >=20.9.0"
      },
      "pnpm": {
        "overrides": {
          "@types/react": "npm:types-react@19.0.0-rc.0",
          "@types/react-dom": "npm:types-react-dom@19.0.0-rc.0"
        }
      },
      "overrides": {
        "@types/react": "npm:types-react@19.0.0-rc.0",
        "@types/react-dom": "npm:types-react-dom@19.0.0-rc.0"
      }
    }
Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.