-
-
Notifications
You must be signed in to change notification settings - Fork 115
@sveltejs/kit and vite@3 crash Chrome #409
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
Comments
Thanks for the reproduction @sserdyuk. Would you be able to slim it down any more? E.g. I notice there are imports from |
@benmccann I already reduced it as much as possible without requiring too many attempts to reproduce the issue. I think the issue is somehow connected with how Vite handles those imports. If I remove both packages, the issue goes away. |
I just tried this and it's not freezing Chrome for me, but I do see it making more than 1,000 requests, so I suspect this is a duplicate of sveltejs/kit#2612. Can you try the following option in
@bluwy, setting |
@benmccann Thank you for looking into this. Yes, setting the |
Re 100+ requests, looks like Also re SSR: perhaps it's also something to do with the number of components, which future Vite 3 or 4 versions would fix, bringing prebundling in SSR too. |
to work around this problem, prefer deep imports of .svelte files, see also rgossiaux/svelte-headlessui#107 I wonder if the addition of tailwind in the reproduction plays a part here too. |
Another report on discord showed that |
I found the issue with |
I think we can close this issue now. I've filed a new one to track the |
closing per @benmccann's comment. The crash in the original report likely happened due to the large number of requests. |
Describe the bug
We've noticed that a certain page causes Chrome to hang or crash. I was able to create a sample project for this issue. I think it's likely something to do with Vite in dev mode. If I build the project and preview it, everything is working fine.
We've currently switched to Firefox as a workaround.
Reproduction
Please clone https://github.com/sserdyuk/vitebug-08-08-2022
Please run
npm run dev
and navigate tohttp://localhost:4100/mock3/explore
. The page usually renders once but crashes Chrome on a refresh. I am also noticing it takes quite a bit of time to load that page in the first place.Logs
No response
System Info
Severity
serious, but I can work around it
Additional Information
No response
The text was updated successfully, but these errors were encountered: