After SvelteKit 1.0.0-next.397, build hangs without displaying errors
See original GitHub issueDescribe 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:
% npm run build
> shy-svelte@3.0.3 build
> vite build
vite v3.0.4 building for production...
✓ 1737 modules transformed.
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
- Change version of @sveltejs/kit to 1.0.0-next.398 in package.json (or change to “latest”)
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
% npm run build
> shy-svelte@3.0.3 build
> vite build
vite v3.0.4 building for production...
✓ 1737 modules transformed.
System Info
System:
OS: macOS 12.4
CPU: (10) arm64 Apple M1 Pro
Memory: 1.90 GB / 32.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 18.7.0 - /opt/homebrew/bin/node
npm: 8.15.1 - /opt/homebrew/bin/npm
Browsers:
Chrome: 103.0.5060.134
Firefox: 102.0.1
Safari: 15.5
npmPackages:
@sveltejs/adapter-node: latest => 1.0.0-next.85
@sveltejs/kit: 1.0.0-next.397 => 1.0.0-next.397
svelte: ^3.49.0 => 3.49.0
vite: ^3.0.4 => 3.0.4
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.
Issue Analytics
- State:
- Created a year ago
- Reactions:7
- Comments:12 (9 by maintainers)
Top Results From Across the Web
Errors • Docs • SvelteKit
The exception is when the error occurs inside the root +layout.js or +layout.server.js , since the root layout would ordinarily contain the +error.svelte ......
Read more >[Tutorial] Build a website with SvelteKit 1.0
SvelteKit has now reached 1.0, meaning it's out of the beta phase, ... to the <SliceZone> to show errors in development but not...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks! My build just completed with 1.0.0-next.402
That was mine.