keystonejs / keystonejs/keystone

Customer Admin UI Logo Example is broken

Open
#8,844 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
10k
Forks
1.3k
Avg merge
19h 14m
Merged PRs (30d)
19

Description

in the readme.md file [here](https://github.com/keystonejs/keystone/tree/main/examples/custom-admin-ui-logo) it seems that the code sandbox [example](https://githubbox.com/keystonejs/keystone/tree/main/examples/custom-admin-ui-logo) is broken due to the following error:

```
✨ Starting Keystone
✘ [ERROR] Could not resolve "../example-utils"

keystone.ts:2:30:
2 │ import { fixPrismaPath } from '../example-utils';
╵ ~~~~~~~~~~~~~~~~~~

Error: Cannot find module '/project/sandbox/.keystone/config.js'
Require stack:
- /project/sandbox/node_modules/@keystone-6/core/dist/artifacts-ad26eee3.cjs.dev.js
- /project/sandbox/node_modules/@keystone-6/core/scripts/cli/dist/keystone-6-core-scripts-cli.cjs.dev.js
- /project/sandbox/node_modules/@keystone-6/core/scripts/dist/keystone-6-core-scripts.cjs.dev.js
- /project/sandbox/node_modules/@keystone-6/core/scripts/dist/keystone-6-core-scripts.cjs.js
- /project/sandbox/node_modules/@keystone-6/core/bin/cli.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:956:15)
at /project/sandbox/node_modules/next/dist/server/require-hook.js:110:36
at Function.Module._load (node:internal/modules/cjs/loader:804:27)
at Module.require (node:internal/modules/cjs/loader:1028:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.getBuiltKeystoneConfiguration (/project/sandbox/node_modules/@keystone-6/core/dist/artifacts-ad26eee3.cjs.dev.js:365:28)
at dev (/project/sandbox/node_modules/@keystone-6/core/scripts/cli/dist/keystone-6-core-scripts-cli.cjs.dev.js:886:42)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/project/sandbox/node_modules/@keystone-6/core/dist/artifacts-ad26eee3.cjs.dev.js',
'/project/sandbox/node_modules/@keystone-6/core/scripts/cli/dist/keystone-6-core-scripts-cli.cjs.dev.js',
'/project/sandbox/node_modules/@keystone-6/core/scripts/dist/keystone-6-core-scripts.cjs.dev.js',
'/project/sandbox/node_modules/@keystone-6/core/scripts/dist/keystone-6-core-scripts.cjs.js',
'/project/sandbox/node_modules/@keystone-6/core/bin/cli.js'
]
}
error Command failed with exit code 1.
```

Contributor guide

Open the contributing guide

Research direction

Start with README.md and the examples/custom-admin-ui-logo CodeSandbox link, then inspect its keystone.ts import of ../example-utils. Verify how the example is packaged and started; done means the sandbox resolves the helper and starts Keystone without the missing config.js error.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
documentation
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.