keystone
keystone copied to clipboard
Install from Walkthrough Docs fails
Node: 19.0.0 / NPM 8.19.2 Yarn: 3.3.1
Following along with instructions here: https://keystonejs.com/docs/walkthroughs/lesson-1
- On initial setup of
yarn add @keystone-6/core, Yarn throws a lot of dependency warnings. - Added keystone.ts.
- Configured the file to match up with walkthrough.
- Ran
yarn keystone dev
It immediately fails out:
/Volumes/development/io/.pnp.cjs:20006
Error.captureStackTrace(firstError);
^
Error: @aws-sdk/lib-storage tried to access @aws-sdk/abort-controller (a peer dependency) but it isn't provided by its ancestors; this makes the require call ambiguous and unsound.
Required package: @aws-sdk/abort-controller
Required by: @aws-sdk/lib-storage@virtual:493ac131eddf8b36890692f61f16647bfba0be86208fb68d1d1346f0140ef686dbc15bcdd2fca6e8ba0296445211d7f98cddc0f0aa63e346a11b1e5fa43a49bb#npm:3.254.0 (via /Volumes/development/io/.yarn/__virtual__/@aws-sdk-lib-storage-virtual-9e34ed2bcb/0/cache/@aws-sdk-lib-storage-npm-3.254.0-d9f76a1934-56070808b9.zip/node_modules/@aws-sdk/lib-storage/dist-cjs/)
Ancestor breaking the chain: @keystone-6/core@npm:4.0.1
Require stack:
- /Volumes/development/io/.yarn/__virtual__/@aws-sdk-lib-storage-virtual-9e34ed2bcb/0/cache/@aws-sdk-lib-storage-npm-3.254.0-d9f76a1934-56070808b9.zip/node_modules/@aws-sdk/lib-storage/dist-cjs/Upload.js
- /Volumes/development/io/.yarn/__virtual__/@aws-sdk-lib-storage-virtual-9e34ed2bcb/0/cache/@aws-sdk-lib-storage-npm-3.254.0-d9f76a1934-56070808b9.zip/node_modules/@aws-sdk/lib-storage/dist-cjs/index.js
- /Volumes/development/io/.yarn/cache/@keystone-6-core-npm-4.0.1-493ac131ed-2a697376f4.zip/node_modules/@keystone-6/core/dist/createSystem-e6a7a86b.cjs.dev.js
- /Volumes/development/io/.yarn/cache/@keystone-6-core-npm-4.0.1-493ac131ed-2a697376f4.zip/node_modules/@keystone-6/core/scripts/cli/dist/keystone-6-core-scripts-cli.cjs.dev.js
- /Volumes/development/io/.yarn/cache/@keystone-6-core-npm-4.0.1-493ac131ed-2a697376f4.zip/node_modules/@keystone-6/core/scripts/dist/keystone-6-core-scripts.cjs.dev.js
- /Volumes/development/io/.yarn/cache/@keystone-6-core-npm-4.0.1-493ac131ed-2a697376f4.zip/node_modules/@keystone-6/core/scripts/dist/keystone-6-core-scripts.cjs.js
- /Volumes/development/io/.yarn/cache/@keystone-6-core-npm-4.0.1-493ac131ed-2a697376f4.zip/node_modules/@keystone-6/core/bin/cli.js
at require$$0.Module._resolveFilename (/Volumes/development/io/.pnp.cjs:20006:13)
at require$$0.Module._load (/Volumes/development/io/.pnp.cjs:19856:42)
at Module.require (node:internal/modules/cjs/loader:1061:19)
at require (node:internal/modules/cjs/helpers:103:18)
at Object.<anonymous> (/Volumes/development/io/.yarn/__virtual__/@aws-sdk-lib-storage-virtual-9e34ed2bcb/0/cache/@aws-sdk-lib-storage-npm-3.254.0-d9f76a1934-56070808b9.zip/node_modules/@aws-sdk/lib-storage/dist-cjs/Upload.js:4:28)
at Module._compile (node:internal/modules/cjs/loader:1159:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
at require$$0.Module._extensions..js (/Volumes/development/io/.pnp.cjs:20050:33)
at Module.load (node:internal/modules/cjs/loader:1037:32)
at require$$0.Module._load (/Volumes/development/io/.pnp.cjs:19887:14)
I would think the most basic setup should work or the documentation should be more specific as to yarn oddities or specific versions that may be required. I can't even get past the first step.