-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
After SvelteKit 1.0.0-next.397, build hangs without displaying errors #5786
Comments
I'm very surprised that a duplicate reference to types makes this hang - wonder what's going on there. AFAIK vite doesn't even try to type-check, so why would it interfere with the build? |
Actually - my mistake as I neglected to do an |
- Keep kit 1.0.0-next.397 until sveltejs/kit#5786 is fixed
Three changes in 398: https://github.com/sveltejs/kit/blob/master/packages/kit/CHANGELOG.md#100-next398 |
I'll try to take a look at this today. My bet is that the illegal module analysis may be entering a cyclical import and not breaking out like it should. |
On discord, saw some comments about builds getting very long (went from 30 seconds to 15 minutes) after 1.0.0-next.397. Perhaps related? |
@tcc-sejohnson I think that is the cause. The build completes when I comment out the call to There's another reproduction in #5784 (comment) that might have a few less dependencies in case it's any easier to debug against |
This comment was marked as off-topic.
This comment was marked as off-topic.
I am seeing this too, but it's not hanging, just amazingly slow. For me, findSvelteDependencies takes around 15 minutes. Please find attached output of my build process. Line 1018 takes ~18 minutes. If if I downgrade to 1.0.0-next.397, my build is fine. |
@jiyosub - Was looking at your build.out.txt - there is a private key in it so you should probably remove the file from your comment. I will delete what I just downloaded and wash my eyes out ;-) |
Thanks. Fixed that and rotated those keys. (Just vite dev server keys, but better safe than sorry) |
That was mine. |
Thanks! My build just completed with 1.0.0-next.402 |
Having similar issue: |
- Keep kit 1.0.0-next.397 until sveltejs/kit#5786 is fixed
- Keep kit 1.0.0-next.397 until sveltejs/kit#5786 is fixed
Describe the bug
After upgrading to any version of SvelteKit after 1.0.0-next.397, when running
npm run build
(vite build), it gets to a specific point in the process then never completes. No error messages:I am using vite@3.0.4 and @sveltejs/adapter-node@1.0.0-next.85. The version of these packages appears to have no effect on the inability to complete the build.
Reproduction
git clone https://github.com/nstuyvesant/shy-svelte.git
cd shy-svelte
npm install
npx vite build
(ornpm run build
) - use first one if you don't want to include my post-build script (will reproduce issue easily)This build will never complete (or throw an error).
Change the SvelteKit version back to 1.0.0-next.397 and retry. Build will complete without problems.
Logs
System Info
Severity
blocking an upgrade
Additional Information
Another person on Discord ran into this with their project as well. A change in 1.0.0-next.398 in combination with my project seems to be the cause.
The text was updated successfully, but these errors were encountered: