#Error: fieldSchema.reduce is not a function

10 messages · Page 1 of 1 (latest)

simple atlas
#

Getting this error when running locally with the following packages:

{
  "name": "payloadcms",
  "description": "A blank template to get started with Payload 3.0",
  "version": "1.0.0",
  "license": "MIT",
  "type": "module",
  "scripts": {
    "dev": "cross-env NODE_OPTIONS=--no-deprecation PORT=3333 next dev",
    "devsafe": "rm -rf .next && cross-env NODE_OPTIONS=--no-deprecation next dev",
    "build": "cross-env NODE_OPTIONS=--no-deprecation next build",
    "payload": "cross-env NODE_OPTIONS=--no-deprecation payload",
    "start": "cross-env NODE_OPTIONS=--no-deprecation next start",
    "lint": "cross-env NODE_OPTIONS=--no-deprecation next lint",
    "generate:types": "payload generate:types"
  },
  "engines": {
    "node": ">=20.0.0"
  },
  "dependencies": {
    "@aws-sdk/lib-storage": "^3.565.0",
    "@payloadcms/db-mongodb": "3.0.0-beta.20",
    "@payloadcms/next": "3.0.0-beta.20",
    "@payloadcms/plugin-seo": "3.0.0-beta.20",
    "@payloadcms/richtext-lexical": "3.0.0-beta.20",
    "@payloadcms/storage-s3": "3.0.0-beta.20",
    "@payloadcms/ui": "3.0.0-beta.20",
    "add": "^2.0.6",
    "cross-env": "^7.0.3",
    "graphql": "^16.8.1",
    "next": "^14.3.0-canary.7",
    "payload": "beta",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "sharp": "^0.33.3"
  },
  "devDependencies": {
    "@types/add": "^2",
    "@types/node": "^20.11.25",
    "@types/react": "^18.2.64",
    "@types/react-dom": "^18.2.21",
    "dotenv": "^16.4.5",
    "tsx": "^4.7.1",
    "typescript": "^5.4.2"
  },
  "packageManager": "yarn@4.1.1"
}

This error gives no real explanation of what might be wrong. This is working for me locally but its not running for my colleague who is getting this error with the exact same code. Is anyone able to give us a bit more information so we know where to start debugging?

fast bisonBOT
ebon birch
#

@simple atlas Same node version?

simple atlas
#

@ebon birch yeah both on 20

ebon birch
#

weirddd

#

@simple atlas They followed the same steps for setup?

#

I would have them purge node_modules and try to setup the project again

#

If that doesn't work, something else must be going on and I can ping someone

simple atlas
#

@ebon birch thank you - yeah they've played about with their yarn version and their node modules and seems to all be working now!

ebon birch
#

phew, glad to hear!