---
title: "Comment by Stefan Ammon on \"Live-Chat with SvelteKit and SocketIO\" | Hashnode"
description: "Hi Linus, many thanks for your SK/Socket.io approach! It might be the result of SvelteKits latest breaking changes, but I constantly run into the following erro"
url: "https://hashnode.com/posts/live-chat-with-sveltekit-and-socketio/62002b373a8a6e5fe1198221/comment/632859d5195e7dc741da5529"
---

[Discussion](https://hashnode.com/posts/live-chat-with-sveltekit-and-socketio/62002b373a8a6e5fe1198221)

Comment [Live-Chat with SvelteKit and SocketIO](https://hashnode.com/posts/live-chat-with-sveltekit-and-socketio/62002b373a8a6e5fe1198221)

[Stefan Ammon](https://hashnode.com/@neueraeumlichkeit)

[Sep 19, 2022](https://hashnode.com/posts/live-chat-with-sveltekit-and-socketio/62002b373a8a6e5fe1198221/comment/632859d5195e7dc741da5529)

Hi Linus, many thanks for your SK/Socket.io approach! It might be the result of SvelteKits latest breaking changes, but I constantly run into the following error: "Error: config.kit.vite has been removed — use vite.config.js instead". Any Ideas how to overcome this issue?

[Linus Benkner](https://hashnode.com/@EinLinuus)

[Sep 19, 2022](https://hashnode.com/posts/live-chat-with-sveltekit-and-socketio/62002b373a8a6e5fe1198221/comment/632859d5195e7dc741da5529#reply-6328d4b0195e7dc741da6616)

Thanks for your feedback!

Not tested yet, but maybe this works: [pastebin.com/P2JSMC71](https://pastebin.com/P2JSMC71)

Put this in your `vite.config.js`. As far as I understand, the `vite` section from the `svelte.config.js` now moved to `vite.config.js`.

[Stefan Ammon](https://hashnode.com/@neueraeumlichkeit)

[Sep 27, 2022](https://hashnode.com/posts/live-chat-with-sveltekit-and-socketio/62002b373a8a6e5fe1198221/comment/632859d5195e7dc741da5529#reply-6332b10191ea68463fd5f31d)

Thank you Linus, meanwhile i was able to figure out how to deal with it. Following Matija´s tutorial ([joyofcode.xyz/using-websockets-with-sveltekit](https://joyofcode.xyz/using-websockets-with-sveltekit)) i just swapped the code from svelte.config.js to vite.config.js like this:

![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1664265983562/ZjuCF5mUS.png)

which is actually the way you proposed. let´s keep on SvelteKitting ;)
