-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
steps to reproduce
git clone https://github.com/keystonejs/keystone.git
pnpm install
cd examples/document-field-customisation
pnpm devexpected to happen
reachable keystone and next app (:3000 & :8000)
Error in Terminal
> @keystone-6/monorepo-example-document-field-customisation@ dev /Volumes/edata/vscode/keystone/examples/document-field-customisation
> concurrently "cd keystone-server && pnpm dev" "cd nextjs-frontend && pnpm dev"
[0]
[0] > @keystone-6/[email protected] dev /Volumes/edata/vscode/keystone/examples/document-field-customisation/keystone-server
[0] > keystone dev --seed-database
[0]
[1]
[1] > @keystone-6/[email protected] dev /Volumes/edata/vscode/keystone/examples/document-field-customisation/nextjs-frontend
[1] > next dev --port 8000
[1]
[1] ▲ Next.js 15.2.2
[1] - Local: http://localhost:8000
[1] - Network: http://10.42.242.34:8000
[1]
[1] ✓ Starting...
[0] ✨ Starting Keystone
[1] ✓ Ready in 1479ms
[0] ⭐️ Server listening on :3000 (http://localhost:3000/)
[0] ⭐️ GraphQL API available at /api/graphql
[0] ✨ Generating GraphQL and Prisma schemas
[0] ✨ Database unchanged
[0] ✨ Connecting to the database
[0] 🌱 Seeding database...
[0] GraphQLError: An error occurred while resolving input fields.
[0] - Post.content: Key on object value "intent" is not allowed
[0] at resolverError (/Volumes/edata/vscode/keystone/packages/core/src/lib/core/graphql-errors.ts:28:10)
[0] at getResolvedData (/Volumes/edata/vscode/keystone/packages/core/src/lib/core/mutations/index.ts:343:49)
[0] at resolveInputForCreateOrUpdate (/Volumes/edata/vscode/keystone/packages/core/src/lib/core/mutations/index.ts:480:27)
[0] at createSingle (/Volumes/edata/vscode/keystone/packages/core/src/lib/core/mutations/index.ts:79:36)
[0] at /Volumes/edata/vscode/keystone/packages/core/src/lib/core/mutations/index.ts:147:38
[0] at async Promise.allSettled (index 0)
[0] at /Volumes/edata/vscode/keystone/packages/core/src/lib/core/mutations/index.ts:553:55
[0] at async Promise.all (index 0)
[0] at async Promise.all (index 0)
[0] at Object.createMany (/Volumes/edata/vscode/keystone/packages/core/src/lib/context/executeGraphQLFieldToSource.ts:202:20)
[0] at seedPosts (/Volumes/edata/vscode/keystone/examples/document-field-customisation/keystone-server/src/seed/index.ts:35:3)
[0] at seedDatabase (/Volumes/edata/vscode/keystone/examples/document-field-customisation/keystone-server/src/seed/index.ts:43:3)
[0] at Object.onConnect (/Volumes/edata/vscode/keystone/examples/document-field-customisation/keystone-server/keystone.ts:12:7)
[0] at Object.connect (/Volumes/edata/vscode/keystone/packages/core/src/lib/createSystem.ts:204:11)
[0] at /Volumes/edata/vscode/keystone/packages/core/src/scripts/dev.ts:238:11
[0] at initKeystone (/Volumes/edata/vscode/keystone/packages/core/src/scripts/dev.ts:140:7) {
[0] path: [ 'createPosts', 0 ],
[0] locations: undefined,
[0] extensions: { code: 'KS_RESOLVER_ERROR', debug: [ [Object] ] }
[0] }
[0] ELIFECYCLE Command failed with exit code 1.
[0] cd keystone-server && pnpm dev exited with code 1
[1] ✓ Compiled / in 304ms (359 modules)
[1] GET / 200 in 586ms
Result
Browser :8000
Something went wrong
fetch failed
Browser :3000 unreachable
macOs m1 Silicon
node v22.14.0
pnpm v9.15.9
Metadata
Metadata
Assignees
Labels
No labels