-
-
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
Duplicate loading of the same resource on startup with Vite 2.9 beta1+ #7323
Comments
It may be a regression that emerged as a result of these PRs: |
@Artur- @vursen would you test the latest [email protected] version? |
Tested. I see the same problem with beta3 |
Thanks Artur-, I'll keep working on it. Would you share the complete logs you see? |
@Artur- I managed to get your setup working, and with beta.2 I see the error you reported, but with beta.3 it is working well for me, in the same way as with beta.0.
|
I can confirm that the error is still there even with beta.3. Make sure you don't open DevTools with the enabled Considering the latter note, it seems to have something to do with the browser cache. The page gets stuck because of the duplicate of the Here is the recording: Screen.Recording.2022-03-16.at.16.33.06.mov |
I posted the A curious fact is that the log only mentions |
The other observation: It reproduces on refresh also. There is no need to remove Right now I see that
and
This seems where the |
Thanks for digging into the issue, it helped me understand the problem. #7350 should fix this. We'll merge it once GitHub decides to work again and runs the required CI tests |
Nice! I will test once there is a beta 4 |
@Artur- [email protected] has been released. We may continue doing changes for cold-start though, see #7379, we could also avoid blocking during the scan phase |
🎉 beta 4 works like a charm |
Describe the bug
On the first page load in Chrome, after removing
node_modules/.vite
I see only a blank page. The reason iswhich in turn originates in that a JS file is loaded twice with different

?v=
parametersIt is a timing issue because if I open the Chrome inspector then the issue disappears and the
vaadin.js
file is still loaded twice but with the same?v=
parameter.With 2.9.0.beta0 I do not see this problem
Reproduction
Cannot make a simple app. @patak-dev has access to the application where it can be reproduced
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: