Skip to content
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

Update to support SvelteKit 2.0 #140

Closed
randomiser opened this issue Dec 19, 2023 · 8 comments
Closed

Update to support SvelteKit 2.0 #140

randomiser opened this issue Dec 19, 2023 · 8 comments

Comments

@randomiser
Copy link

With Sveltekit 2.0 now released it would be great to update this to support it.

https://svelte.dev/blog/sveltekit-2

@Dabugger
Copy link

With Sveltekit 2.0 now released it would be great to update this to support it.

https://svelte.dev/blog/sveltekit-2

Yes, we need sveltekit 2 support.

@HalfdanJ
Copy link
Owner

I will not be able to work on this until the new year, but anyone can work on a PR I will happily make a release

@Dabugger
Copy link

I will not be able to work on this until the new year, but anyone can work on a PR I will happily make a release

how can we know what files to modify, what is the first step?

@HalfdanJ
Copy link
Owner

I haven't myself yet tried to migrate a project with the adapter to V2, so don't know what might be needed. I assume the ticket got opened because something isn't working?

@Dabugger
Copy link

I haven't myself yet tried to migrate a project with the adapter to V2, so don't know what might be needed. I assume the ticket got opened because something isn't working?

Yes, your adapter is not working with sveltekit 2, there is an error regarding the build folder, i believe it changed with sveltekit 2.

@mjoycemilburn
Copy link

mjoycemilburn commented Dec 27, 2023

Issues I've noticed include:

  1. sveltekit v2 requires you to import vitePreprocess from @sveltejs/vite-plugin-svelte not @sveltejs/kit/vite
  2. cloud Run support for nodejsRuntime: 16 will cease in Jan '24
  3. the demo app at https://svelte-demo-329602.uc.r.appspot.com/ no longer works

Additionally, svelte-adapter-appengine worked great for me in a test webap at sveltekit v1.27.4 but, since I moved to 2.0.0, deployments to app engine fail with an "Invalid request body" error.

I'm still investigating the issue - most likely a problem at my end, so please don't get discouraged. This library has enormous potential.

@HalfdanJ
Copy link
Owner

HalfdanJ commented Jan 1, 2024

Thanks @mjoycemilburn for the list.

  1. This seems to only be a README change, not actually requiring any changes to the adapter itself.
  2. Changing the default nodejs runtime to v18 now: feat: Change default nodejs runtime to 18 #145
  3. Thanks for pointing out the url was dead. Didn't have anything to do with sveltekit 2, the project had just been deleted by accident. Deployed again docs: Fix demo deployment #146

The demo app works fine with sveltekit 2.0. If you are able to identify any other issues with the adapter and v2, please re-open this issue.

@HalfdanJ HalfdanJ closed this as completed Jan 1, 2024
@mjoycemilburn
Copy link

mjoycemilburn commented Jan 2, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants