Skip to main content
Filter by
Sorted by
Tagged with
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
2 votes
1 answer
42 views

I am working on a simple website, using SvelteKit. For the UI, I use Flowbite-Svelte and some of its components. During early stages of development, I just used the availableFrom property. Now I want ...
Stef1397's user avatar
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
1 answer
78 views

I enter "npx sv create" as I have done successfully numerous times before, and choose all defaults. The usual spinner begins, but this error appears. I have rebooted, tried different clean ...
WahhabB's user avatar
  • 530
0 votes
2 answers
58 views

So I have a SvelteKit project with the following project structure: lib/ ├─ components/ │ └─ my_module/ │ └─ my_resource/ │ ├─ CreateObjectButton.svelte ← Button component (important by ...
The Fox's user avatar
  • 532
2 votes
1 answer
61 views

I'm creating a component that will receive several RouteId and create links I want to use the resolve fn to validate them see: https://svelte.dev/docs/kit/$app-paths#resolve If I declare a prop (or a ...
opensas's user avatar
  • 64.4k
1 vote
1 answer
251 views

I’m developing a desktop app with Rust + Tauri (v2.5) + SvelteKit. On macOS my command for opening a new settings window works perfectly. On Windows however, the app freezes when building the window: ...
Don Coder's user avatar
  • 568
2 votes
2 answers
156 views

I wrote a site in SvelteKit and the navigation between pages felt really fast because, SvelteKit on hover, runs the load functions of the pages, downloads everything to the client and on click, it ...
berinaniesh's user avatar
0 votes
1 answer
110 views

I am getting the following error when I try to update a username in better-auth from a sveltekit client # SERVER_ERROR: error: column "displayUsername" of relation "users" does ...
PirateApp's user avatar
  • 6,362
1 vote
0 answers
45 views

I just started learning Svelte. Here's a small problem I encountered recently: I’m trying to use {#await} in SvelteKit to simulate a loading state while waiting for server data. Here’s my setup: <!-...
user31393851's user avatar
1 vote
1 answer
56 views

I'm importing a module in my app.html as follows <body data-sveltekit-preload-data="hover"> <script type='module' src='https://cdn.jsdelivr.net/npm/@owlbear-rodeo/[email protected]/+esm'...
Mackie Messer's user avatar
0 votes
1 answer
80 views

Context I have a Svelte 5 + SvelteKit application (App A) that is loaded into an iframe within a different app (App B). When the iframe loads, App B emits a one-time message event with id=OBR_READY. ...
Mackie Messer's user avatar
1 vote
0 answers
73 views

I have a SvelteKit setup where I perform a fetch request inside an action in +page.server.ts. Specifically, I define an addSender action that handles a POST request to an external API and returns an ...
Remi's user avatar
  • 5,487
1 vote
1 answer
106 views

I get this message in my terminal when running my svelte frontend: Avoid calling fetch eagerly during server side rendering — put your fetch calls inside onMount or a load function instead I ...
TheCommoner282's user avatar
38 votes
7 answers
33k views

My sveltekit app has a form which sends a POST request to server. The app is working fine on dev server but when I build and run the app it fails to send the form data via POST request. It shows the ...
Shakir's user avatar
  • 549
62 votes
4 answers
146k views

I want to expose my svelte app on LAN using the npm run dev --host command but it shows: > [email protected] dev > svelte-kit dev SvelteKit v1.0.0-next.295 local: http://localhost:3000 ...
blest's user avatar
  • 849
0 votes
2 answers
472 views

In the code listed below I am getting an error: [svelte-5] 'state' is not defined svelte (missing-declaration) The app was created using npx sv create app. I added the component file named ...
Jim Reineri's user avatar
  • 2,982
-3 votes
1 answer
79 views

Since I'm having a bug that I can't figure out, a cold doubt has assailed me:. I have the below code in a Svelte 5 SvelteKit app. And I'm importing import { queryClient } from './src/query.ts from ...
Fred Hors's user avatar
  • 4,273
0 votes
2 answers
798 views

I am trying to create a simple dispatcher but I keep getting error that it doesnt recognize the dispatcher that i am creating. function dispatchChange() { dispatch('treeChange', { id: ...
V.Rashkov's user avatar
  • 1,793
31 votes
5 answers
17k views

I want to use environment variables in my Sveltekit app - it works fine on dev server, but I get this build error: Error: 'PUBLIC_KEY' is not exported by $env/static/public, imported by src/routes/+...
Stiegi's user avatar
  • 1,887
0 votes
1 answer
55 views

Using the sveltekit starter on stackblitz, I've installed the supabase package. In the root directory I have a .env file with SUPABASE_URL and SUPABASE_KEY and the values are filled in. In src/lib/...
StephD's user avatar
  • 304
11 votes
6 answers
8k views

Sveltekit has very strict a11y checks, for instance you can't just add on:click to a div. I can suppress it on a per-line bases, e.g.: <!-- svelte-ignore a11y-click-events-have-key-events --> &...
ZYinMD's user avatar
  • 5,347
21 votes
9 answers
38k views

I have a page with a search field. If accessed with a query parameter (e.g. ?word=cat) the page should load with results present and the search field filled. If a search is done the results and the ...
Steffen's user avatar
  • 1,646
1 vote
1 answer
153 views

I'm using an env variable MY_VAR that I use from $env/static/public import { MY_VAR } from '$env/static/public'; export const myVar = MY_VAR === 'true'; I'd like to mock it in some tests, to support ...
Valentin Vignal's user avatar
16 votes
7 answers
31k views

I'm using the following combination of technologies: SvelteKit (1.5.0, using TypeScript), with Vite (4.0.0) as the build tool that comes with SvelteKit) Svelte's adapter-static (2.0.1) for publishing ...
Jeroen's user avatar
  • 64.4k

1
2 3 4 5
61