Crazy-Unicooorn / crazy-guessr

Your comprehensive training hub for improving at GeoGuessr.
https://crazy-unicooorn.github.io/crazy-guessr/
3 stars 1 forks source link

[Dependency] Trying to update vite results in import resolve errors while running vite #77

Open Crazy-Unicooorn opened 4 months ago

Crazy-Unicooorn commented 4 months ago

When trying to update these to their latest versions:

Package                           Current  Wanted  Latest  Location
vite                                4.5.1   4.5.3   5.3.3  node_modules/vite
@vitejs/plugin-react                4.2.0   4.3.1   4.3.1  node_modules/@vitejs/plugin-react

I get those kind of errors while running vite (npm run dev):

[vite] Internal server error: Failed to resolve import "../../../assets/img/us/plates/blurred/alabama1.jpg" from "src/components/tips/us/LicensePlate.tsx". Does the file exist?

I don't know which one is causing the errors (or is it both?) and I haven't try to update to the wanted versions as a middle step. I don't want to mess too much with things that I am not comfortable with yet...