Giter Site home page Giter Site logo

Comments (12)

Dacong-wu avatar Dacong-wu commented on May 20, 2024 4

please use Squoosh
astro-doc

from astrowind.

sreejithkalarikkal avatar sreejithkalarikkal commented on May 20, 2024 3

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?

error-cloudflare

Thank you.

Use pnpm install and pnpm run build ,pnpm run dev

from astrowind.

elsaso avatar elsaso commented on May 20, 2024 3

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.

soranauts avatar soranauts commented on May 20, 2024 2

Is it maybe related to #313

from astrowind.

Dacong-wu avatar Dacong-wu commented on May 20, 2024 2

azure and render have the same problem

from astrowind.

orpheuslummis avatar orpheuslummis commented on May 20, 2024 2

having the same issue on Vercel

update: using squoosh worked

from astrowind.

codywilliamson avatar codywilliamson commented on May 20, 2024 2

same issue on Netlify, using squoosh worked for me as well.

from astrowind.

orpheuslummis avatar orpheuslummis commented on May 20, 2024 2

Using Astro on Vercel requires a special setup https://vercel.com/docs/frameworks/astro

from astrowind.

whb avatar whb commented on May 20, 2024 2

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.

alelotti96 avatar alelotti96 commented on May 20, 2024 2

Could anyone explain the steps to use squoosh if this solves the issue?

from astrowind.

soranauts avatar soranauts commented on May 20, 2024 2

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.

prototypa avatar prototypa commented on May 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.