Category "svelte"

Slow button response time with Capacitor x Svelte on Ios

I try to create a starter app with Capacitor and Svelte. Everything works fine except one thing, when I use native html anchor ( with svelte-routing) for naviga

NodeJs - Get last modified file in sub directories of directory

I have the following code to list all folders within a directory, and it maps each folder's name and date created. I'm struggling to get the last modified file

How to setup turborepo with sveltekit and pnpm

I am trying to add Turborepo to my Svelte apps but looks like the npx create-turbo@latest command and also the examples currently only support NextJs. How can I

How do you use element attributes with Svelte when compiling to a custom element?

I am trying to create a custom checkbox using Svelte and compile it to a custom element (with customElement: true) but I don't know what way is the proper way o

Svelte Gantt Chart - Separate via months

I'm trying to have a gantt chart with all 12 months in it. I'm doing this by setting the from & to values to currentDate.clone().endOf('year') & current

scroll to a overflowing item inside flex box

My desired goal is that when I keyboard to the right outside of the flexbox, I want to push the other items to the left so I can see the terms in the overflow,

Svelte - event modifier "once" on form submit not working

Any idea why the once modifier doesn't work on form submitting in Svelte? In the following example: <form action="./" on:submit|preventDefault|once={() =>

Sveltekit Base URL for subdirectory throws 404

I need a bit of understanding for serving a Sveltekit app from a subdirectory. My company will serve the app from a subdirectory called /activ. I figure it's ea

how to authenticate with svelte and jwt

how to authenticate with svelte and jwt how to use jwt with svelte I can't find an example of authentication using only svelte and jwt, no external providers. i

Svelte/SvelteKit - Update iframed component when props change

In my sveltekit app, i have an embedded application via iframes, and when the user goes to the url it essentially loads that relative url within the iframe (for

how to use tailwinds @apply with @layer directive from a Svelte component

I want to use apply to define some css setting on a component, and I also want to be able to overwrite it, like this: <!-- CustomButton.svelte --> <scr

Sevltekit 404 error when refreshing dynamic route

I want a static page that loads content dynamically based on URL, for example like this: https://example.com/pokemon/id It can load on the server or on the clie

Is there a 404 errorcode fallback page for svelte-routing?

This fallback component={NotFound} is the only way i found for error pages but returns a component page with server code 200, i'd like to get code 404. Is there

How to display a package.json version in the footer of the site?

I would like to display a version that is declared in the package.json file in the footer of my site How can I do this? I found this FAQ explanation in their do

near-api-js Failing to connect to near

Was making a svelte implementation of a near app. We have a button that connects to the testnet network. It will open wallet to sign in. When successful, it wil

how to wait for local store value in <svelte:head> in sveltekit

I read this answer about how to wait for component render but it is not working in case of svelte:head this is my code <svelte:head> {#if $theme ===

Bundle JS and CSS into single file with Vite

I'm having a devil of a time figuring out how to build a single .js file from Vite in my Svelte project that includes all of the built javascript and CSS from m

Content is wider than screen on ios

I'm creating a Wordle like app with an on-screen keyboard. When developing on desktop and using dev tools to simulate a mobile screen, it looks fine. But when I

The background becomes black when I add DaisyUI in my SvelteJS+Tailwindcss Project

I was configuring with my SvelteJS and Tailwindcss project with DaisyUI. But every time I add DaisyUI to a Project the background color becomes black. Maybe it'

Get parent node dimensions in svelte

I'm trying to use Svelte and it's my first time so sorry for maybe the stupid question. I read the Svelte documentation but I'm stuck with a simple problem. Bas