When running the examples/assets-local with pnpm dev and try to upload an image I get:
An error occurred while resolving input fields.
- Post.banner: require() of ES Module /home/jneidel/tmp/keystone/node_modules/.pnpm/file-type@19.0.0/node_modules/file-type/index.js from /home/jneidel/tmp/keystone/packages/core/src/lib/assets/createImagesContext.ts not supported.
Instead change the require of index.js in /home/jneidel/tmp/keystone/packages/core/src/lib/assets/createImagesContext.ts to a dynamic import() which is available in all CommonJS modules.
When running the
examples/assets-local
withpnpm dev
and try to upload an image I get:node -v => v16.20.2