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",
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too