-
-
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
adapter-static can't build initial project #3473
Comments
Repo with reproduction build log with error available: |
Can conform this is happening for me as well. Dependencies from my package.json: |
also happens with
on a routes/ svelte file if there's also a |
For the |
Facing the same problem with my own SvelteKit project, I also noticed that the default project doesn't build. I arrived at this conclusion by doing the following (which might not be the correct approach..) |
I'm finding a similar issue (though my build is failing silently, not generating the index.html file in build folder). I pinned static-adapter on 1.0.0-next.26, and tried rolling back kit versions and building until it worked. For me, 1.0.0-next.231 is where it stops working. |
I don't fully understand how this is happening but I've narrowed it down. Basically, It happens in prerender's I'm not sure what the right fix would be here because I don't understand the code well enough but I'm pretty sure this is the source of the error. |
got this problem too |
Unfortunately, I have no clue how to fix it now :( |
I'm facing this problem too - it's been an absolute nightmare. |
Reproducible on my end with demo app + adapter-static. According to node-fetch/node-fetch#533 (comment), perhaps we can use |
The SvelteKit |
I just got this error as well.
I dont know if it helps but before svelte build there is this message:
I would contact the author of |
confirmed @russellgoldenberg's observation that pinning dependency to |
Just tried rolling back versions and it looks like it doesn't work on my end. Tried going back a few months. Also tried commenting out |
@eba8 when you downgrade version remember also to clean npm cache ( |
Maybe I'm doing this wrong? I've updated package.json with Deleted svelte-kit files, build and node modules. Ran did
The error I still get: |
With the help of my amazing friend @octokatherine it's now working. My mistake was having Package.json with |
Ah yes, the dirty |
…3521) * Add failing test for #3473 prerender error body used already * Fix reading from same response body twice during prerender * Fix quotes * Add changeset * Fix casing for internal variables * Revert change of cloning response as bug was actually in prerender.js * Avoid reading response body twice * Revert "Avoid reading response body twice" This reverts commit cecf7dd. Revert being stupid #1 * Revert "Revert change of cloning response as bug was actually in prerender.js" This reverts commit 5e5f30b. Revert being stupid #2 * store buffered depenedency bodies for prerendering * failing test for non-buffered endpoint data * use buffered body if available, otherwise buffer Co-authored-by: Rich Harris <[email protected]>
…already_' error building the project removed SvelteKit 1.0.0-next.244 fixed [#3473](sveltejs/kit#3473) and [#3521](sveltejs/kit#3521). `clone()` on fetch response as workaround to avoid '_body used already_' error when building the project removed
I'm using |
I'm having this problem right now. No index.html file is created in build folder using adapter-static 1.0.0-next.29 and svelte/kit next. Using versions @eba8 mentioned works but would like to use latest version. Is this bug and something that will be fixed or a new way of doing things. Causes my aws-amplify build to fail and caused capacitor build to fail |
This problem still exists with @sveltejs/[email protected] |
Same issue for me 😕 |
Describe the bug
Current version of adapter-static broken from 1.0.0-next.24 version
After that update adapter-static failing to build Kit template.
Current Skeleton App not compatible with svelte kit, or svelte kit is not compatible with static adapter.
Reproduction
Create new kit project (npm init svelte@next my-app)
install @sveltejs/adapter-static@next
Add it to svelte.config.js as adapter instead of adapter-auto.
Try to build app.
Logs
System Info
Severity
blocking all usage of SvelteKit
Additional Information
Actually I was trying to fix MailCheck-co/mailcheck.site@abecae8, but during debug I disabled everything in project with no luck. Then I tried to create new project, and found that new projects are broken from start.
The text was updated successfully, but these errors were encountered: