You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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:A ticket has already been opened on the astro repository to track the issue: withastro/astro#12805
The text was updated successfully, but these errors were encountered: