Quantcast
Channel: Active questions tagged svelte - Stack Overflow
Browsing all 1539 articles
Browse latest View live
↧

Does SvelteKit support background jobs

Where should I put codes that are supposed to always run like croner? I can't find it here.Edit:It seems like it's not possible at the moment. Should I use a separate backend?

View Article


SvelteKitError: Not found: /index.js - How can I fix this?

SvelteKitError: Not found: /index.js at resolve (<project_dir>/node_modules/@sveltejs/kit/src/runtime/server/respond.js:525:13) at resolve...

View Article


@types/youtube, reference error:YT is not defined

i'm trying to use typescript in sveltekit to implement a youtube API. I'm using @types/youtube, hoping that I can get better results getting the video to work by passing the URL and get videoDuration....

View Article

SvelteKit not recognizing Typescript syntax

I have a SvelteKit project with typescript (setup with Vite) that worked fine when running "npm run dev". However, when I tried putting the app on Github Pages, this error showed up (on local host)...

View Article

Svelte components with generics

I want to use a generic type in a Svelte(Kit) component's props, and I found out there is this type T = $$Generic thing:<script lang="ts"> import type { Writable } from "svelte/store"; type T =...

View Article


Only fire set if object data has changed in Svelte store

In Svelte, when using a writable store that takes a single primitive value (e.g. a string), when firing set multiple times for the same value, subscribe will only be called when the value changes. Demo...

View Article

Looking for creative coding advice for handling API(s) on...

I'm currently doing an experimental mentoring/learning project which requires me to embed YouTube videos on my page. I would like to get my demo on the cloud by the end of the month but I'm still...

View Article

Image may be NSFW.
Clik here to view.

How to add js/css style to svelte-kit project

I have a js effect called color changin in codepen and i dont how implement it into my svelte-kit project like I tried to implementing this directly into app.css and app.html but it didn't work I dont...

View Article


How do I dispatch focus to SVELTE UX TextField component?

I have a <TextField/> component that I am using from Svelte UXI assigned it an id but when I try something like document.getElementById('the-id').focus(), I get TypeError: Cannot read properties...

View Article


Terminal warning Sourcemap for xxx in node modules in svelte, vite, sentry

How do I stop this annoying waring in terminal?Sourcemap for "xxxxx/node_modules/@material/circular-progress/foundation.js" points to missing source filesI tried the followingsentryVitePlugin({ org:...

View Article

How can I submit multi-page form in SvelteKit with Form Actions?

Normally, I store all the values of a form and send POST request to the server if it is a multipage form. But what if I have a form like this in my +page.svelte:<script lang="ts"> import...

View Article

How do we do "named slots" in in Svelte 5?

Svelte 5 Slots are ConfusingNow, with Svelte 5 at pre-release, I feel I can express some confusion about slots in Svelte 5. In Svelte 4, slot and names slots where done in the following...

View Article

Operationerror when decrypting key using subtle crypto api

I am encoding and decoding passwords using a master password, salt and iv. The weird thing is whenever the error happens (during the decryption process, I never get an error during encryption) and I...

View Article


How can I conditionally load images in Svelte?

I am trying to create a webpage where you get a random image when you open the page. I want svelte to decide on a random image when the page loads and then load that image in the "src" tag. I have a...

View Article

Svelte animated transition after its style is updated from binded properties

I have a Svelte 5 component who's position is calculated according to its size, which depends on its dynamic content:<script> import { onMount } from "svelte" import { quintIn } from...

View Article


Are dynamic imports at runtime in the browser (ESM) possible with Svelte?

I'm updating a Svelte component/framework library (using Vite / Sveltekit) that was created using npm create svelte. I'm using the default compilation setup.The library must be able to render...

View Article

v-show alternative for Svelte

The case is that I'm showing Loading component on fetch request. I use store to set $loading to true and inside conditions is the Loading component. The problem is that the Loading component seems to...

View Article


Unable to implement web component package in React test site using CodeSandbox

I've written a simple checkbox web component in Svelte, which I've packaged into a bundle using Vite. The bundle process worked fine, and I was able to publish an alpha version to npm, but when it...

View Article

Svelte and .d.ts generation with rollup

I am trying to bundle with rollup a library written in svelte/ts. My purpose is of course to produce a .js (several for es/umd/...) and a .d.ts file.As an input (source-code) I have :.ts files.svelte...

View Article

Image may be NSFW.
Clik here to view.

Why is Clicking a button intended to modify specific part of view in my...

ContextLanguage used : typescriptUI toolkit svelte and bootstrapIssue descriptionI'm currently writing a vscode extension with one of it's feature being that clicking a button update an HTML table...

View Article
Browsing all 1539 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>