Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
0 answers
35 views

When attempting to reproduce the punchcard graphic from LayerChart documentation, I get the following result: Playground demo [Layer Chart] You set yNice: true but the yScale does not have a .nice ...
h3xStream's user avatar
  • 6,699
0 votes
0 answers
32 views

I’m using Routify v3 with Vite 5 and Svelte, and I’m facing an issue where dynamic routes stop working after saving code changes (Ctrl + S) during development. { "@roxi/routify": "^3....
Shailesh B's user avatar
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
1 vote
1 answer
50 views

If I have a child component, for example Dialog.svelte, which exports some const values: <script lang="ts"> // Just to illustrate that this is a Svelte 5 component let { title }: { ...
goose_lake's user avatar
  • 1,627
1 vote
0 answers
84 views

This is my unit test: import '@testing-library/jest-dom/extend-expect'; import { render, cleanup, fireEvent, waitFor, waitForElementToBeRemoved, screen, } from '@testing-library/svelte'; ...
dariusz's user avatar
  • 601
1 vote
1 answer
65 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
1 vote
1 answer
75 views

I have a component in Svelte that I want to use a transition on. However this component is not ready the second it is mounted (it contains a canvas that needs a few frames before fully completed), ...
munHunger's user avatar
  • 3,117
2 votes
1 answer
75 views

I have component <Component> which is basically an instance of another component <Modal> (a modal used for a specific action). For consistency and improved legibility I am passing all the ...
Moon Rat's user avatar
0 votes
1 answer
43 views

I’m building a Svelte 4 app with Routify for routing and carbon-components-svelte for UI. I have a Pagination component that should read the current page from the URL query params ($params.page) and ...
Shailesh B's user avatar
0 votes
0 answers
82 views

I'm making a swimming app and I want a button that adds an event to a swim meet. In place of a store, I'm using an object called STATE that acts as a single source of truth for the entire app. <...
Patrick Detzner's user avatar
1 vote
1 answer
167 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
0 votes
1 answer
48 views

{#if val} <div>Content</div> {/if} How do I call a function after the div is rendered?
Christian Meichtry's user avatar
0 votes
0 answers
56 views

I have this shadcn Select component and it's supposed to bind to a value of a selected object. {#if selectedPopup.value} <Select.Root type="single" bind:value={selectedPopup.value....
Nikolay Dyankov's user avatar
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
-1 votes
2 answers
152 views

I'm struggling a bit with some new concepts after transitioning from Svelte 3. I have this component ParentComponent.svelte <script lang="ts"> let selectedCell: Optional<Cell>...
h345k34cr's user avatar
  • 3,528
0 votes
0 answers
51 views

I like the LayerChart for Svelte but can not figure out how to format this like the axis font style, size or color? I am guessing it is via CSS but can not find what classes need to be formatted. ...
diogenes's user avatar
  • 2,181
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
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
1 vote
1 answer
165 views

I'm trying to migrate from svelte4 to svelte5 and for that I would like to change some $: to $effect. A pattern that I used from time to time looks like that: let {id} = $props(); let thing = $state();...
Lothar's user avatar
  • 77
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
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
1 vote
1 answer
135 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
0 votes
0 answers
229 views

I'm working on a small Astro test project that uses the Node standalone adapter for an API endpoint. Then I'm using a Svelte form to POST to that endpoint like in this tutorial. I'm running the Node ...
codeadventurer's user avatar
-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

1
2 3 4 5
127