Skip to main content
Filter by
Sorted by
Tagged with
Advice
0 votes
0 replies
45 views

Just to prime - The following question is about understanding why automerge, indexedDB adapter and svelte-stores behave in a specific way - I'm not searching for code debug and just put the code in a ...
Markus's user avatar
  • 2,497
0 votes
3 answers
59 views

I am trying to render an element from a Float32Array using Svelte. let laterTimeIndex = hourlyWeatherData.time .find((timeData: Date) => timeData.getHours() === (currentTime + 5) % 24 ...
Krinz's user avatar
  • 21
0 votes
1 answer
58 views

Reproduction https://svelte.dev/playground/2c859a9c620b4b9a8422c2596df4c209?version=5.42.3 Using Svelte (v5.42.3) and Svelte Kit (v2.48.2) and @tanstack/svelte-query (v6.0.3). If I have the component ...
Fred Hors's user avatar
  • 4,273
1 vote
0 answers
42 views

So I'm working on an Obsidian plugin that uses Svelte 4, but has security vulnerabilities that involve upgrading to Svelte 5 to resolve.(old ESBuild in Vite) I wanted to minimize the changes to my ...
FEZ_R's user avatar
  • 25
0 votes
1 answer
122 views

I’m working with a Svelte 5 application that has already been deployed in production, and I don’t have access to its source code. I’d like to inspect or interact with some of its internal variables ...
Sikora's user avatar
  • 46
-3 votes
1 answer
129 views

When running npm run dev that works but when I stop the npm run dev and run the npm run build then go to the web site, I get the error message: Illuminate\Foundation\ViteManifestNotFoundException: ...
黃梓榆's user avatar
0 votes
1 answer
199 views

We are porting our svelte 3 based app to 5. It has a dynamic widget compilation system that allows end-users to create their own svelte widgets (see this post for background). Compilation seems to ...
mr.freeze's user avatar
  • 14.1k
0 votes
1 answer
24 views

I have the following list of Player objects {id:number, name:string} which is a globally stored element made using writable: // $lib/global.ts import { writable } from 'svelte/store'; import type { ...
Figaro's user avatar
  • 21
0 votes
1 answer
93 views

Context I'm using Svelte-Flow with Sevelte 5 for some project. To scale I want to have the object defining my node pushed to indexedDB. To keep it in sync and don't dodata handling twice, I want to ...
Markus's user avatar
  • 2,497
1 vote
2 answers
86 views

I have this Svelte 5 code: <script lang="ts"> type BaseProps = { required?: boolean; }; type SingleDateProps = BaseProps & { range?: false | undefined; ...
Fred Hors's user avatar
  • 4,273
0 votes
1 answer
93 views

I’m using a custom Select component inside a table, and I want to make some reactive calculations in the parent component for example, updating the total price when a discount is selected through a ...
Juan Jose Rios's user avatar
0 votes
0 answers
50 views

It works normal as it should when a user signs up via Google or Facebook, but when it's just email the user gets redirected to /sign-up/verify-email-address, which I have not set up and the user does ...
thelordsg's user avatar
0 votes
1 answer
61 views

I am trying to deploy a sveltekit app using adapter-node using .env files. I have a .env file with several values: V_TEST1=TEST1 PUBLIC_V_TEST2=TEST2 I access them using import { V_TEST1 } from '$env/...
Ben Quan's user avatar
  • 839
0 votes
2 answers
109 views

App.svelte: <script> import Comp, {getValue} from "./Comp.svelte"; const derivedValue = $derived.by(getValue); </script> <Comp /> <p> <span>App: ...
Seva Golovanov's user avatar
3 votes
1 answer
366 views

this is my first post — I'm new to both Stack Overflow and SvelteKit. I'm trying to test a Svelte 5 Navbar component that conditionally shows links/buttons based on: page.data.user — if the user is ...
InternationalBonus16's user avatar
0 votes
0 answers
102 views

I am using Svelte5. When I send an array from +page.server.js to +page.svelte it always works server-side and the array is sent as expected. However when +page.svelte is running on the client side ...
k4mars's user avatar
  • 21
1 vote
1 answer
122 views

I have a simple +page.ts showing the data string and providing the "Update" button: <script lang="ts"> import { invalidateAll } from '$app/navigation'; const { data }...
Seva Golovanov's user avatar
1 vote
1 answer
536 views

I'm migrating my project from Svelte 4 to Svelte 5, and one major pain point is the removal of the traditional onMount usage for async logic. In Svelte 4, I used onMount(async () => { ... }) to ...
Alexandre's user avatar
1 vote
0 answers
127 views

Not able to get routing to work without a bug. The route works if I click on the link twice, the second time, the correct page renders. The first a console output error is generated. ERROR: Uncaught ...
Bill's user avatar
  • 1,235
0 votes
1 answer
37 views

I'm wondering about internals of Svelte to properly design my application to have maximum efficiency (I may deal with (tens?) of thousands of elements to update, so efficiently does matter), notably ...
tobiasBora's user avatar
  • 2,594
0 votes
1 answer
60 views

If I scaffold a new Svelte v5 project npm create vite@latest myapp -- --template svelte Then import the Open-props stylesheets in the main App.svelte file :global { @import "https://unpkg....
Matt W's user avatar
  • 12.7k
0 votes
0 answers
71 views

main.ts file import App from "../components/HelloWorld.svelte"; const app = new App({ target: document.body, }); export default app; rollup.config.json file import svelte from "...
hlcodes01's user avatar
0 votes
0 answers
73 views

Setup I have an express backend server running on localhost:8000 My sveltekit frontend is running on localhost:5173 Problem I shut my backend server down to see what happens on the frontend I ...
PirateApp's user avatar
  • 6,362
1 vote
1 answer
189 views

I have Firebase app with Svelte 5. Svelte is '5.17.5', @sveltejs/kit is '2.15.3', firebase is '11.2.0', vite is '6.0.7'. Here is method, it doesn't stop on await/async. What am I missing? Here is ...
Hrvoje's user avatar
  • 131
0 votes
1 answer
101 views

Given this +layout.svelte: <div class="app"> <Header /> <main> {@render children()} </main> </div> if I do a goto in a component, the ...
morpheus's user avatar
  • 20.7k