Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Astro 5 support #722

Open
anotheri opened this issue Nov 3, 2024 · 1 comment
Open

Astro 5 support #722

anotheri opened this issue Nov 3, 2024 · 1 comment
Assignees
Labels
dependencies Pull requests that update a dependency file

Comments

@anotheri
Copy link

anotheri commented Nov 3, 2024

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",
@anotheri anotheri added the bug Something isn't working label Nov 3, 2024
@mhdcodes mhdcodes removed the bug Something isn't working label Nov 4, 2024
@mhdcodes
Copy link
Member

mhdcodes commented Nov 4, 2024

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.

@mhdcodes mhdcodes added the dependencies Pull requests that update a dependency file label Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

2 participants