Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Error: writeStatic has been removed. Please ensure you are using the latest version of svelte-adapter-github #2

Closed
jerrygreen opened this issue Aug 15, 2022 · 5 comments

Comments

@jerrygreen
Copy link

This error appears when I try to build my project with most currently recent versions:

  • "@sveltejs/kit": "1.0.0-next.405",
  • "svelte-adapter-github": "0.0.1-next.0",

When I try to use older @sveltejs/kit, I bump into this another issue:

Therefore I need to downgrade my @sveltejs/kit so much, that everything else just breaks up: and consecutively I need to downgrade almost everything to who knows which version, in order to find this short period of time when all this stack worked, for building SveltKit project for Github.

@jerrygreen
Copy link
Author

More info about breaking changes:

It seems they removed writeStatic at Jul 19 in here: sveltejs/kit#5618

@jerrygreen
Copy link
Author

jerrygreen commented Aug 18, 2022

Btw I just tried to use all the old versions, so svelte-adapter-github works again, but it seems it does not generate all the needed pages, like about.html, blog.html, etc. Only index.html... It's a false adapter: it never worked.

image

@j4w8n
Copy link
Owner

j4w8n commented Sep 8, 2022

Thank you.

With the upcoming changes on sveltejs/kit#5845, I'm starting to think I need to deprecate this package. I originally just copied the code from sveltekit's static adapter, then modified it a bit for use with Github.

If I do continue it, I need to make some changes so I can merge updates from the official adapter-static and make some tweaks so this adapter will work with newer versions of sveltekit.

@jerrygreen
Copy link
Author

Actually, yes, adapter-static seems to be enough. I'm using it currently, it seems to work without an issue.

@j4w8n
Copy link
Owner

j4w8n commented Sep 27, 2022

Ok, I finally found some time to get this straightened out. The latest version should be good, but since you're using the official adapter-static I'll close this issue.

@j4w8n j4w8n closed this as completed Sep 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants