Comments (5)
Could you try reinstalling your dependencies? Maybe your installation of Sharp is corrupted, not sure.
from astro.
Could you try reinstalling your dependencies? Maybe your installation of Sharp is corrupted, not sure.
Reinstalling the dependencies still reports an error, likely related to Sharp
.
However, I can't use the version of Sharp0.33.4
that you use in Astro^4.9.2
.
I manually downgraded the Sharp
version to 0.31.3
, and now I can use images in my project without any errors.
package.json:
{
"resolutions": {
"sharp": "0.31.3"
},
"name": "astro",
"type": "module",
"version": "0.0.1",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro"
},
"dependencies": {
"astro": "^4.9.2"
}
}
from astro.
When I brew install vips
, this error will not occur, and I do not need to downgrade Sharp
version to use the images normally.
from astro.
or you can move to different image service like squoosh
from astro.
Sharp does depend on libvips
so I think this is expected. Closing: https://github.com/lovell/sharp
from astro.
Related Issues (20)
- Query parameters lost and function inconsistently
- Some tests are broken on main branch HOT 1
- base url not working as expected during dev HOT 3
- Cookies are not persistent when set on a page inside 'account' folder HOT 7
- Unable to generate RSS feed with directory format consistently across DEV and PROD environments
- Astro is not building to default folder according to docs and running it reports broken module reference. HOT 1
- `hast` element property names converted to `camelCase` when running in MDX mode
- Slow Rendering Performance (Astro is more than 10 times slower than Solid) HOT 3
- Refuse to apply style because its MIME type ('') is not a supported stylesheet MIME type, and strict MIME checking is enabled. HOT 4
- Special characters excluded from content collection slug
- Optimalization: ViewTransition CSS should be after after `<body>` HOT 17
- Rewrite in middleware incorrectly returns a 404 response HOT 7
- Markdown Pages - Links on new tab and additional attribute support HOT 1
- `__dirname is not defined in ES module scope` because of mdx integration HOT 2
- Missing .env variables are incorrectly resolved in SSR mode HOT 2
- Astro Actions: POST Requests with Rewriting Throw 'The Body Has Already Been Consumed' Error HOT 5
- Minifiy HTML when div in ahref
- Nested links being rendered as siblings HOT 2
- There is a bug in the rendering order of Astro components
- Build broken in Astro 4.11.6 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from astro.