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.

Minifier error on pnpm build for v3 payload app

default discord avatar
lzyaclast year
5

What could be the reason?



here is my package.json



{
  // ...
  },
  "dependencies": {
    "@payloadcms/db-mongodb": "beta",
    "@payloadcms/next": "beta",
    "@payloadcms/plugin-cloud": "beta",
    "@payloadcms/plugin-seo": "beta",
    "@payloadcms/richtext-lexical": "beta",
    "@payloadcms/storage-gcs": "beta",
    "@radix-ui/react-slot": "^1.1.0",
    "class-variance-authority": "^0.7.0",
    "clsx": "^2.1.1",
    "cross-env": "^7.0.3",
    "framer-motion": "12.0.0-alpha.0",
    "graphql": "^16.9.0",
    "next": "15.0.0-canary.104",
    "payload": "beta",
    "prism-react-renderer": "^2.3.1",
    "react": "19.0.0-rc-06d0b89e-20240801",
    "react-dom": "19.0.0-rc-06d0b89e-20240801",
    "react-hot-toast": "^2.4.1",
    "sharp": "0.32.6",
    "tailwind-merge": "^2.5.2",
    "usehooks-ts": "^3.1.0"
  },
  "devDependencies": {
    "@types/node": "^20.16.1",
    "@types/react": "npm:types-react@19.0.0-rc.0",
    "@types/react-dom": "npm:types-react-dom@19.0.0-rc.0",
    "autoprefixer": "^10.4.20",
    "eslint": "^8.57.0",
    "eslint-config-next": "15.0.0-canary.104",
    "postcss": "^8.4.41",
    "tailwindcss": "^3.4.10",
    "typescript": "5.5.4"
  },
  "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"
  }
}
  • default discord avatar
    johannes_10420last year

    I had a similar issue and it worked when using node 22 instead of 20. Not sure about the root cause though.

  • default discord avatar
    lzyaclast year

    Interesting, I'll have a go with the new version and get back to you



    @1276449862476369926

    sorry for the ping, but how did you do it?



    It's not working on my end after I set a new version using pnpm



    ❯ pnpm env use --global latest


    I ran that command



    to get 22.7.0





    bump



    i downgraded to node 18.20.2, and it worked



    not very happy with this solution though.

  • default discord avatar
    johannes_10420last year

    For me, it only failed in CI, where I could bump the node version rather easily. Sounds pretty weird though 🤔

  • default discord avatar
    lzyaclast year

    yeah



    thank you for the help

  • default discord avatar
    marleyjplantlast year

    I am having the same issue, what is causing it?



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.