Comments (12)
please use Squoosh
astro-doc
from astrowind.
Hello,
I've been using your template for a side project and deploying it via Cloudflare Pages, which has been performing exceptionally well. However, I encountered an issue yesterday as the builds began failing, prompting the following error. Interestingly, the local build process remains unaffected. Could this be attributed to a Cloudflare-related issue or potentially a dependency problem?
Thank you.
Use pnpm install and pnpm run build ,pnpm run dev
from astrowind.
I was able to resolve this by adding this line to my packages.json
"resolutions": { "astro/sharp": "0.33.1", "astro-compress/sharp": "0.33.1" }
from astrowind.
Is it maybe related to #313
from astrowind.
azure and render have the same problem
from astrowind.
having the same issue on Vercel
update: using squoosh worked
from astrowind.
same issue on Netlify, using squoosh worked for me as well.
from astrowind.
Using Astro on Vercel requires a special setup https://vercel.com/docs/frameworks/astro
from astrowind.
same issue on Netlify
9:16:22 AM: generating optimized images
9:16:22 AM: munmap_chunk(): invalid pointer
9:16:23 AM: Aborted (core dumped)
9:16:23 AM:
9:16:23 AM: "build.command" failed
9:16:23 AM: ────────────────────────────────────────────────────────────────
9:16:23 AM:
9:16:23 AM: Error message
9:16:23 AM: Command failed with exit code 134: npm run build (https://ntl.fyi/exit-code-134)
9:16:23 AM:
9:16:23 AM: Error location
9:16:23 AM: In build.command from netlify.toml:
9:16:23 AM: npm run build
9:16:23 AM:
9:16:23 AM: Resolved config
9:16:23 AM: build:
9:16:23 AM: command: npm run build
9:16:23 AM: commandOrigin: config
9:16:23 AM: processing:
9:16:23 AM: html:
9:16:23 AM: pretty_urls: false
9:16:23 AM: publish: /opt/build/repo/dist
9:16:23 AM: publishOrigin: config
9:16:23 AM: headers:
9:16:23 AM: - for: /assets/*
values:
Cache-Control: public, max-age=31536000, immutable
headersOrigin: config
9:16:23 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
9:16:23 AM: Failing build: Failed to build site
9:16:24 AM: Finished processing build request in 59.17s
9:16:23 AM: Failed during stage "building site": Build script returned non-zero exit code: 2
from astrowind.
Could anyone explain the steps to use squoosh if this solves the issue?
from astrowind.
Could anyone explain the steps to use squoosh if this solves the issue?
I removed astro-compress
from dependencies and config file. You can find configuration details for Squoosh here.
from astrowind.
Hi @redvisual, @soranauts, @Dacong-wu, @sreejithkalarikkal, @orpheuslummis, @whb, @alelotti96 and @elsaso
Thank you for this. I've been checking and it seems that it is an existing problem with the latest version of Sharp. These two tickets from the respective Sharp and Vercel repositories are reviewing the issue. In addition, there are many forums talking about Sharp failures on other platforms.
lovell/sharp#3870
vercel/nft#371
@elsaso, I also tried your solution but it does not solve all platforms (for example, not with Vercel)
For now we have temporarily removed astro-compress and also migrated from Sharp to Squoosh. As soon as we have a clear solution for Sharp we will revert the changes.
If you have any more problems, please let me know.
Thanks
from astrowind.
Related Issues (20)
- Error: Unable to locate the "tabler" icon set! HOT 1
- How are you using i18n HOT 1
- I had a problem with installing @tabler-icons-react and flat-color-icons
- Strange spacing CSS bug in blog excerpts HOT 2
- why still in beta
- missing "use this template" button
- Author isn't displayed on the post HOT 1
- output: 'static' to output: 'server' HOT 1
- How should i add Schema.org into astrowind
- Matomo Analytics? HOT 1
- Hover tooltips? HOT 1
- npm run build fails due to getImage() return type GetImageResult HOT 4
- Make Feature2 items cards clickable like blog posts grid items? HOT 1
- not able to add facebook chat plugin HOT 1
- Viewtransitions break anchor links HOT 3
- Handling forms HOT 1
- Chinese category HOT 1
- Netlify Builds are Failing HOT 1
- Build failing - munmap_chunk(): invalid pointer
- i18n
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 astrowind.