Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local assets example throws an error on image upload #9106

Open
jneidel opened this issue Apr 20, 2024 · 0 comments
Open

Local assets example throws an error on image upload #9106

jneidel opened this issue Apr 20, 2024 · 0 comments

Comments

@jneidel
Copy link

jneidel commented Apr 20, 2024

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.

screenshot_24-04-20_08:59:11

node -v => v16.20.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant