When you make a case based typo in an import vite's hmr fails to recompile that file. This is only really an issue on case insensitive file systems like the default one on MacOS
- Start dev server (yarn dev) or just by running
vite --open
in this folder - Open the home page (should happen automatically given the --open flag)
- Change anything in the src/Button component
- See that nothing happens
Rename the import in main.tsx
from import { Button } from "./button";
to import { Button } from "./Button";