Nikola Hristov
Nikola Hristov
Can you try the latest `astro-compress` [v2.2.21](https://github.com/Playform/CompressAstro/releases/tag/AstroCompress%2Fv2.2.21) and `@playform/compress-astro` [v0.0.2](https://github.com/Playform/CompressAstro/releases/tag/CompressAstro%2Fv0.0.2) ? @JeremyJames @jurajkapsz @kristianfrost @enricogallesio
@jurajkapsz it's a deprecated package. In the future only `@playform/compress-astro` will remain or the new package `@playform/compress`. They're all the same in terms of functionality just have different names. See:...
@kristianfrost I see, it seems that the integration must have an `astro-integration` keyword in its [package.json](https://github.com/Playform/CompressAstro/blob/Current/package.json) to be registered as an integration successfully by the `Astro` component. I removed it...
@jurajkapsz Hm, interesting..
It seems that importing two `sharp` instances causes this.
@jurajkapsz @enricogallesio @JeremyJames @bngmnn `astro` `v4.5.15` just got released https://github.com/withastro/astro/blob/refs/heads/main/packages/astro/CHANGELOG.md#4515 with the `PR` merged - https://github.com/withastro/astro/pull/10616. Can you give that a try with the latest `astro-compress` [v2.2.21](https://github.com/Playform/Compress/releases/tag/AstroCompress%2Fv2.2.21) or `@playform/compress-astro` [v0.0.2](https://github.com/Playform/Compress/releases/tag/CompressAstro%2Fv0.0.2)...
Ok, there's one last resort I would like to try which might have been the culprit all this time https://github.com/Playform/Compress/blob/Current/Source/Function/Integration.ts#L203. Limiting / unlimiting the amount of memory used. I'll release...
`astro-compress` [v2.2.22](https://github.com/Playform/Compress/releases/tag/AstroCompress%2Fv2.2.22) and `@playform/compress` [v0.0.3](https://github.com/Playform/Compress/releases/tag/Compress%2Fv0.0.3) have been released with better error checking and `unlimited` `sharp` set to `false` in [Source/Function/Integration.ts](https://github.com/Playform/Compress/blob/e3849a199d40848e78eb6922e40dbf77d658b239/Source/Function/Integration.ts#L208-L228). Can you give that a try ? @JeremyJames @jurajkapsz @enricogallesio...
> I used the `astro-compress 2.2.21` and `astro 4.5.15` on cloudflare, no luck. The error is different but may be same rootcause? > > ``` > 10:01:44.414 | munmap_chunk(): invalid...
Yeah, you can do: ```ts import compress from "astro-compress"; import { defineConfig } from "astro/config"; export default defineConfig({ integrations: [ import.meta.env.MODE === "production" ? compress() : null, ], }); ```...