{🧪} +paoloricciuti.svelte
@paolo.ricciuti.me
1.4K followers 430 following 1.8K posts
S1 | Developer | https://sveltelab.dev | Fat guy | Svelte Ambassador 🔶 | Svelte maintainer 🧡 | JavaScript Bender
Posts Media Videos Starter Packs
paolo.ricciuti.me
1400 followers! Thanks, everybody, for willingly deciding to hear about Svelte 90% of my posts 😅
paolo.ricciuti.me
That should be fine...it might also be a bug in SvelteKit...if you find a way to consistently reproduce, please open an issue 🙏🏻
paolo.ricciuti.me
That's interesting...if it happens during build, it's most likely the prerendering that is doing fetch requests to the SvelteKit app. The error happens when someone is trying to read the body of a request that has already been consumed. Do you have any prerendered routes?
paolo.ricciuti.me
You should be able to: svelte.dev/docs/mcp/loc...

Unfortunately, there's a bug where remote MCP doesn't work in Codex at all, but you should be able to use the local setup (and that should be picked up by the Codex extension too.
Local setup • Docs • Svelte
Local setup • Svelte documentation
svelte.dev
paolo.ricciuti.me
Did you try with the new MCP server? It should autocorrect whenever the agent tries to go svelte 4!
paolo.ricciuti.me
Well there's not much docs to add...you can use await without a boundary, SSR will wait for that promise to resolve and SSR the output 😁
paolo.ricciuti.me
Async ssr it's already available 😎
paolo.ricciuti.me
We changed the API a bit but now is much much nicer 🧡

Try out sveltekit remote functions today 🤟🏻🤟🏻🤟🏻
sveltesociety.dev
SvelteKit's remote functions now handle FormData out of the box!
github.com/sveltejs/kit...
paolo.ricciuti.me
You can also use the underlying headless component library, bits-ui. And I'm sure someone has made a material version of it 😁 point is, there are pre built component library that are better than SMUI, maybe that's a solution :)
paolo.ricciuti.me
Tbf that more on the SMUI library than svelte...svelte components are default imports.

What do you think about shadcn/svelte? Would it be possible to use it in your project? It's probably better maintained (and with better defaults)
paolo.ricciuti.me
But that's just JS imports...you can name them as you want
paolo.ricciuti.me
a toggle to toggle between JS only and TS because some people don't like TS (I know it's kinda crazy but yet)
paolo.ricciuti.me
Again I don't get what you mean by subcomponents.

You technically can but you need to use global...once again this is a conscious design decision to prevent style leaking out of a component.

Stores is a kinda of a legacy of a world before runes.

TS absolutely is a first class citizen, we have
paolo.ricciuti.me
I don't get what you mean by subcomponents and how they can or can't clash
paolo.ricciuti.me
Take a look at svelte.dev/packages for packages inspirations.

Sveltekit has an hash mode: just add kit.router.type = "hash" in you svelte config.

They are an extra templating language and it's like this for a reason, it's much easier to quickly glance at your code and understand where blocks are
paolo.ricciuti.me
Why? What can we do to make svelte better?
paolo.ricciuti.me
But the syntax is not wrong in that case no? The styles are mostly subjective and I don't think there's something an MCP server can do no?
paolo.ricciuti.me
What does the AI gets wrong in css?
paolo.ricciuti.me
That's just regular css/tailwind no? I think LLMs are already pretty good at that. We can add auto fixers for the css part too but is there something ai gets constantly wrong there?
paolo.ricciuti.me
Did I just buy ChatGPT Plus because we got a report that the Svelte MCP server was not working there?

I might...why, you ask? 🫣
paolo.ricciuti.me
I second the ferret (which is also one of my favorite animals) 🧡
paolo.ricciuti.me
Right now, local is still hitting up svelte.dev to get the docs but we do plan to have some sort of command that will download the docs locally so you can actually use it offline.

That's a valid use case, however...I'm gonna open a feature request so we can keep track of it.