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

About Astro 5.x update #3

Open
Mitsunee opened this issue Jan 8, 2025 · 0 comments
Open

About Astro 5.x update #3

Mitsunee opened this issue Jan 8, 2025 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@Mitsunee
Copy link
Owner

Mitsunee commented Jan 8, 2025

As it stands right now there is no clean way to upgrade preact projects to Astro 5.x, due to it upgrading vite to v6 (I'm not aware of there being any possibility to stay on vite v5 either).

The problem comes from @astrojs/preact which was upgraded alongside Astro upgrading to vite v6, but without first waiting for its dependencies to actually support this. This causes a version conflict:

 WARN  Issues with peer dependencies found
.
└─┬ @astrojs/preact 4.0.1
  └─┬ @preact/preset-vite 2.8.2
    └── ✕ unmet peer vite@"2.x || 3.x || 4.x || 5.x": found 6.0.5 in @astrojs/preact

$ pnpm why vite

dependencies:
@astrojs/preact 4.0.1
├─┬ @preact/preset-vite 2.8.2
│ ├─┬ @prefresh/vite 2.4.6
│ │ └── vite 6.0.7 peer
│ └── vite 6.0.7 peer
└── vite 6.0.7
astro 4.16.18
├── vite 5.4.11
└─┬ vitefu 1.0.5
  └── vite 5.4.11 peer

A ticket has already been opened on the astro repository to track the issue: withastro/astro#12805

@Mitsunee Mitsunee added the documentation Improvements or additions to documentation label Jan 8, 2025
@Mitsunee Mitsunee pinned this issue Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant