codiume / orbit

Collection of useful integrations & components for the Astro ecosystem. ⭐️ Star to support our work!
https://astro.build
MIT License
344 stars 13 forks source link

Astro 5 support #722

Open anotheri opened 2 weeks ago

anotheri commented 2 weeks ago

Describe the bug astro build command fails on Astro 5.0.0-beta.6

22:48:48 [purgecss] Generating purged css files...
22:48:48 ▶ /_astro/solutions.0977be13.css
22:48:48 ▶ /_astro/media.8220babf.css
22:48:48 ▶ /_astro/index.7b03b967.css
22:48:48 ▶ /_astro/contact.c71d4ff9.css
22:48:48 ▶ /_astro/about.da0be4a8.css
22:48:48 ▶ /_astro/about.58df5035.css
22:48:48 [purgecss] Generating purged html pages...
The "path" argument must be of type string or an instance of URL. Received an instance of Array
  Stack trace:
    at fileURLToPath (node:internal/url:1497:11)
    at file:///****/node_modules/astro-purgecss/dist/index.js:6:2015
    at astro:build:done (file:///****/node_modules/astro-purgecss/dist/index.js:6:2008)
    at async runHookBuildDone (file:///****/node_modules/astro/dist/integrations/hooks.js:442:7)
    at async AstroBuilder.run (file:///****/node_modules/astro/dist/core/build/index.js:183:7)

Also during the package installation getting the peerDependencies warning:

astro is listed by your project with version 5.0.0-beta.6 (peec57), which doesn't satisfy what astro-purgecss and other dependencies request (^4.16.7 || ^4.16.7).

FWIW there are the following dependencies used in project (among others):

"@astrojs/tailwind": "^5.1.2",
"astro-purgecss": "^4.6.1",
"purgecss": "^6.0.0",
"tailwindcss": "^3.4.14",
mhdcodes commented 2 weeks ago

Hey @anotheri thanks for reporting on this, but astro 5 is still in beta release, we plan to add support once the stable version Astro@5.0.0 is released.