Vite
Vite HMR is not working because a file is imported with the wrong case
Vite sees the changed file, but Hot Module Replacement fails because the import path casing does not exactly match the real file path.
Vite
Vite sees the changed file, but Hot Module Replacement fails because the import path casing does not exactly match the real file path.
Observed message
Vite detects a file change but the HMR is not working.
Why it happens
How to fix it
Official reference
Vite: TroubleshootingRelated errors
Explore more