in the documentation to initialize the project, and Upgraded the patch version of dependent packages;
yarn dev is running successfully
but when i run yarn build I got the following error。
By the way, I didn't change any configuration or file . Just upgraded the minor version of the dependent package
generating optimized images
[CouldNotTransformImage] Could not transform image `/_astro/AstroPaper-v3.uaW8qzSG.png`. See the stack trace for more information.
Hint:
This is often caused by a corrupted or malformed image. Re-exporting the image from your image editor may fix this issue.
Error reference:
https://docs.astro.build/en/reference/errors/could-not-transform-image/
Stack trace:
at generateImageInternal (file:///Users/alexchen/WorkSpace/projects/blog/node_modules/astro/dist/assets/build/generate.js:131:21)
at async file:///Users/alexchen/WorkSpace/projects/blog/node_modules/p-queue/dist/index.js:187:36
Caused by:
Could not find Sharp. Please install Sharp (`sharp`) manually into your project or migrate to another image service.
at loadSharp (file:///Users/alexchen/WorkSpace/projects/blog/dist/chunks/astro/assets-service_JerruTv0.mjs:504:11)
at async generateImageInternal (file:///Users/alexchen/WorkSpace/projects/blog/node_modules/astro/dist/assets/build/generate.js:125:26)
at async file:///Users/alexchen/WorkSpace/projects/blog/node_modules/p-queue/dist/index.js:187:36
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
hi , I followed the commands:
yarn create astro --template satnaing/astro-paper
in the documentation to initialize the project, and Upgraded the patch version of dependent packages;
yarn dev
is running successfully but when i runyarn build
I got the following error。By the way, I didn't change any configuration or file . Just upgraded the minor version of the dependent package
my package.json
my env:
If I've missed something, please let me know. Thank you so much。