You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The custom page should be accessible at http://localhost:3000/custom
There should be no TypeScript errors related to the pages property
Actual Behavior
Accessing http://localhost:3000/custom results in a 404 error
TypeScript throws the following error:
Object literal may only specify known properties, and 'pages' does not exist in type '{ isDisabled?: boolean | undefined; isAccessAllowed?: ((context: KeystoneContext<any>) => MaybePromise<boolean>) | undefined; publicPages?: readonly string[] | undefined; basePath?: string | undefined; getAdditionalFiles?: readonly (() => MaybePromise<...>)[] | undefined; pageMiddleware?: ((args: { ...; }) => MaybeP...'.ts(2353)
index.d.ts(184, 5): The expected type comes from property 'ui' which is declared here on type 'KeystoneConfig<any>'
(property) pages: () => {
label: string;
path: string;
component: string;
}[]
Environment
Node.js version: 22.3.0
npm version: 10.8.1
Keystone version: 6.3.0
Operating System: macOS Sonoma 14.6.1
Additional Context
This issue occurs in a clean installation of Keystone 6, suggesting it's not related to any specific project configuration.
The text was updated successfully, but these errors were encountered:
Description
I'm trying to add a custom page to the Keystone 6 Admin UI, but I'm encountering two issues:
pages
property in the UI configuration.Steps to Reproduce
Create a new Keystone 6 project:
Create the following files:
keystone.ts:
schema.ts:
auth.ts:
admin/pages/custom-page.tsx:
Run
npm run dev
Expected Behavior
http://localhost:3000/custom
pages
propertyActual Behavior
Accessing
http://localhost:3000/custom
results in a 404 errorTypeScript throws the following error:
Environment
Additional Context
This issue occurs in a clean installation of Keystone 6, suggesting it's not related to any specific project configuration.
The text was updated successfully, but these errors were encountered: