import App from 'fs';
This is the single most common culprit. JavaScript modules support two types of exports: and named . If they are mismatched during the import/export process, the bundler throws this exact error.
Force Vite to clear its cache and perform a fresh scan by stopping your server and running: npm run dev -- --force Use code with caution. Copied to clipboard no matching export in fs src app.jsx for import app
Older versions of some libraries (like misconfigured react-scripts forks) may have internal resolution bugs. Regularly run npm update or yarn upgrade .
(Alternatively, you can manually delete the node_modules/.vite folder and restart the terminal) 🔍 How to Prevent This in the Future import App from 'fs'; This is the single
Then you’ve found the culprit. Correct the path to point to your actual component file.
// src/app.jsx import App from './App'; // Local component // or import App from './components/App'; Force Vite to clear its cache and perform
Can you of your App.jsx and your main.jsx ? Did you recently rename any files ?