Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
42 views

I am currently working on building an application using SvelteKit, and as such am currently having a VERY difficult time figuring out why I can't trigger the client downloading a PDF (generated by ...
MisutoWolf's user avatar
  • 1,273
0 votes
3 answers
68 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
50 views

I am trying to render markdown posts fetched from a git repo in my Svelte 4 webapp/blog using mdsvex. The markdown mostly renders correctly, but the ``` code blocks dont render corerctly. The ...
skywizard's user avatar
2 votes
1 answer
56 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
69 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
70 views

I am trying to create a generic API app that heavily uses the Accept header using SvelteKit. Some example routes are: GET /[schema] - HTML page with list of {schema} items GET /[schema] Accept: ...
bytesnz's user avatar
  • 441
0 votes
1 answer
132 views

Problem Before asking this question, I read through the MDN page for HTML dialog and saw the examples too (one that has a select with option) and the other the uses returnValue to return a value I ...
PirateApp's user avatar
  • 6,362
1 vote
1 answer
86 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
0 answers
42 views

I have some code using SvelteKit for JS, Sass (with Bootstrap) for CSS, optimized with PurgeCSS, and compiled with Vite. Here my vite.config.js: import { sveltekit } from '@sveltejs/kit/vite'; import {...
madbob's user avatar
  • 660
1 vote
1 answer
127 views

I'm having issue with tailwindcss 4. On fresh new project when I run the app the error occurs: C:/Users/Maxima/Desktop/System_obslugi_praktyk/src/app.css:45:1: @layer base is used but no matching @...
Piszczek's user avatar
0 votes
2 answers
65 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
197 views

Suppose I have a component: //DynamicSearch <script> let { ..., quickAdd=false, quickAddForm} = $props(); </script> // other forms {#if quickAdd} <quickAddForm /> {/if} // Form ...
foragerDev's user avatar
  • 1,451
1 vote
1 answer
279 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
0 votes
1 answer
50 views

I'm building a SvelteKit application where users can edit student details on a dynamic route (/student/[id]). I'm using Supabase for the database and SvelteKit Superforms to handle the form. The ...
Heydave's user avatar
  • 13
1 vote
0 answers
48 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
0 votes
2 answers
80 views

My folders structure: src/routes/[lang]/ ├── +layout.svelte ├── +page.svelte ├── +page.server.ts └── [category]/ ├── +page.svelte └── +page.server.ts The problem is that if I am ...
Durrasell's user avatar
0 votes
1 answer
108 views

"@sveltejs/kit": "^2.34.0" I am adding a close button to the svelte shadcn Tabs component and get this error. I have seen many questions on this in other frameworks but not ...
dan's user avatar
  • 2,989
0 votes
1 answer
119 views

I have a repo that contains both frontend and backend code of my project. The frontend is written in Svelte and resides in /frontend. The files configuration value is deprecated in the newest Svelte ...
mrh1997's user avatar
  • 1,222
0 votes
1 answer
112 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
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
83 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
76 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,507
1 vote
1 answer
43 views

I'm using Svelte 5 and TypeScript in VS Code. I'm running into an issue where the TS language server thinks that the style attribute is not valid for a <div>, which is obviously incorrect. I'm ...
Jeff Hobson's user avatar
0 votes
0 answers
183 views

I ran the following commands in sveltekit to create a new project npx sv create ch_ui I selected the following options ┌ Welcome to the Svelte CLI! (v0.8.20) │ ◇ Which template would you like? │ ...
PirateApp's user avatar
  • 6,362
0 votes
0 answers
20 views

<script> import { Svelvet, Node, Edge } from 'svelvet'; // Make these reactive by declaring them with let // let nodes = [ // { // id: 'start', // position: { x: 100, y: ...
Vishnu's user avatar
  • 1
0 votes
1 answer
60 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
1 vote
1 answer
109 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
1 vote
1 answer
139 views

I'm writing a Svelte(Kit) library that currently works by importing the svelte component. I've been requested to make it also available as a web component, i.e. something like: <script src="...
Sebastiano's user avatar
-1 votes
3 answers
324 views

I'm trying to import a .wasm file on Vercel Edge in SvelteKit. The module I'm using is @resvg/resvg-wasm. When I try like so: import wasmInline from '@resvg/resvg-wasm/index_bg.wasm?inline'; ... await ...
Jonathan's user avatar
  • 4,135
-3 votes
1 answer
82 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
1 answer
86 views

I have a SvelteKit project hosted on Netlify, and the idea is that if a user accesses the route mynetlifyproject.com/route, it should render content from another domain, specifically from app....
Thiago David's user avatar
0 votes
1 answer
77 views

I am using SvelteKit and I have a component that displays a CSS background-image - see picture. I have this working with a hard-coded image but I need to vary the image from card to card. Here is my ...
Zax71's user avatar
  • 38
2 votes
2 answers
164 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
1 vote
1 answer
161 views

My file structure is: - src - foo - script.ts - tsconfig.json - .svelte-kit - tsconfig.json ... My goal is to have typescript files in /foo to be treated essentially as if they were in /src (...
Era's user avatar
  • 23
2 votes
1 answer
64 views

I am making a web app which sends some requests to external APIs which can take some time to complete. The user types information in a form, which is received by a +page.server.ts file in the default ...
Soly's user avatar
  • 35
0 votes
0 answers
53 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
0 answers
24 views

I have some storybook components with loaders. I am using svelte CSF. Individually they load the mock data and display properly, but on autodocs they appear as if the loader never fires. <script ...
Ben Quan's user avatar
  • 839
0 votes
1 answer
68 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
1 vote
1 answer
2k views

I'm trying to implement better-auth for a project. I've followed their great docs, but get 404 errors. Specifically, "GET http://localhost:5173/api/auth/get-session 404 (Not Found)" when I ...
user1505631's user avatar
0 votes
1 answer
336 views

The documentation in just says to create a +page.ts file of import type { PageLoad } from './$types'; export const load: PageLoad = async ({ fetch, params }) => { const res = await fetch(`/api/...
Aces's user avatar
  • 51
1 vote
0 answers
104 views

I'm developing a SvelteKit application and I try to use Vitest to run some tests. I want to test a simple API endpoint: // src/routes/api/test/+server.ts import { testService } from '$lib/server/...
electrotype's user avatar
  • 8,895
0 votes
1 answer
70 views

I have multiple routes that fetch data from different API endpoints, but the structure of the fetch logic is nearly identical. I want to avoid duplicating this logic across all +page.ts files. I tried ...
user30453913's user avatar
0 votes
0 answers
49 views

I have an issue when reloading page in dev and production mode breaks CSS. I see that first page load sets body to 60% width while after reloading it sets to 100%. It happens only in child pages. My ...
krautcat's user avatar
0 votes
1 answer
274 views

I'm trying to create a reverse halftone effect using Three.js, specifically with Threlte. This is my reference image: There are a couple of layers of dots, with some rather large areas of ...
Jesse Winton's user avatar
0 votes
0 answers
23 views

trying to implement AuthJS in Sveltekit with Twitch Provider and Credentials Provider. Twitch Provider is working. But in Credentials where I want that the User can register with email username and ...
JrWebDev's user avatar
  • 126
1 vote
1 answer
161 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
0 votes
1 answer
50 views

I have this piece of code: <script lang="ts"> let visible = $state(false); </script> <div role="button" tabindex="0" onmouseenter={() =>...
Valentin Vignal's user avatar
-1 votes
1 answer
298 views

So I have been working on the implementation of breadcrumbs feature in my sveltekit webapp. The idea is, the breadcrumb will be rendering at the most top layout.svelte. And then the proceeding ...
Muhammad Najid's user avatar
0 votes
0 answers
106 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
2 3 4 5
61