-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
requested module does not provide an export named 'default' #17727
Comments
Same thing happening to me. After the second or third save on the same file, hot reloading fails with that error. Undoing & redoing (basically doing nothing but re-saving the file) or re-starting vite solves the issue until it happens again. With a quick search, found at least 4 other issues with the exact same problem, all of them closed because it couldn't be reproduced: |
ya but this happens everytime. And doing this process each time is exhausting so i really need a permanent solution. |
Wasting my time and energy too |
So basically the problem was I did not save after making changes and once I
save it works properly..
…On Sun, Jul 28, 2024, 5:29 PM Prashant Sahni ***@***.***> wrote:
Wasting my time and energy too
—
Reply to this email directly, view it on GitHub
<#17727 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/BISRP7BNJ3FVWUZPSVKEO3LZOTMJVAVCNFSM6AAAAABLGERHG6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJUGQ4TEMJSGM>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
Describe the bug
I am working on a react project.requested module '/src/components/ClockHeading.jsx' does not provide an export named 'default' .This is the error I am getting in console.I get this error, seemingly random. I cannot find a reason why it may happen but it can happen at any time when I save something in a file, it does not happen every time, just sometimes and it seems that for no reason, then it solves by itself after I save a few more times and/or I reload the page.And this happens in all projects not this alone.i am providing the code in which i am facing the issue pls resolve it asap.
Reproduction
https://github.com/Guna-meda/react/tree/main/src
Steps to reproduce
After i run dev it seems it work properly.But when i import functions from other file it shows error.I do default export .and i get the error - .requested module '/src/components/ClockHeading.jsx' does not provide an export named 'default' . in other projects i get the same error just the file name change and the import and export commands are also right.


System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: