Relative Content

Tag Archive for sveltesveltekit

Custom 404 Error Pages in SvelteKit Not Rendering as Expected Based on Folder Structure

I’m building an application using SvelteKit and I want to create custom error pages that are specific to different parts of my application based on their folder structure. My understanding is that SvelteKit should allow me to have +error.svelte files in different folders, and any 404 errors encountered within those folders should trigger the nearest +error.svelte file.

Svelte reactive prop not updating

I am trying to edit the contents of a component containing a text area, inside of a dynamic route. However this code does not update unless I refresh the page even if the variable is set reactively.

Svelte reactive prop not updating

I am trying to edit the contents of a component containing a text area, inside of a dynamic route. However this code does not update unless I refresh the page even if the variable is set reactively.

SvelteKit goto keeps executing code after

On the client side, I send a JWT to the backend API for certain requests. If there is some issue with the JWT or it’s not refreshed, I want to cancel everything and direct the user to the sign-in page.

Could not open +page.svelte in the editor

Randomly started getting this error on my Svelte projects recently when using the code inspector to open up files. Have no idea how to resolve. It only affects files with special characters in the name.