How can I pass variables to Svelte through CSV?
I need to implement an application for Amazon MTurk to work with hits. For this matter, the application should receive a dynamic video imageDir and frameCount values from a CSV file provided in the...
View ArticleIssue with Svelte Configuration: Implicit "any" in TypeScript and...
I'm working on a SvelteKit project and encountering two main issues:Implicit "any" TypeScript Error:Even though I'm using JavaScript in my project, I'm seeing a TypeScript error Parameter '' implicitly...
View ArticleSvelte $effect rune not logging on array.push for $state rune
This is the code I'm using. Its also in sevelte5 playground here.What I don't understand is, why it's not logging when I add todo with array.push but works when I do reassignment. However, when I...
View ArticleCustom 404 Error Pages in SvelteKit Not Rendering as Expected Based on Folder...
I'm building an application using SvelteKit and I want to create custom error pages that are specific to different parts of my application based on their folder structure. My understanding is that...
View ArticleField 'user' doesn't exist on type 'QueryRoot' Houdini
I have my svelte project with Houdini graphql, and im trying to impelement querying user from my server(that is using graphql)this is my schema.graphql:schema { query: QueryRoot mutation:...
View ArticleImport a surveyJS custom theme in svelte code
Morning,Since yesterday, I have been trying to add a custom theme by following the information given on the surveyJS site.I'm developing a site with svelte, I managed to import the form, but it's...
View ArticleSvelte 3 - How to loop each block X amount of times
I'm hoping to find a way to iterate over an #each block a set amount of times in Svelte 3. In Vue I would do something like this:<li v-for="i in 3"><!-- somecontent --></li>But as I...
View ArticleModify parent's footer slot from child
In Svelte, I am using the Modal component.This component provides the possibility do declare a div with the property slot="footer".This will keep the footer always at the bottom of the modal. It will...
View ArticleSvelte, Snapshot & Cannot destructure property error
I am creating a Svelte application using Firebase Database and am trying to convert a simple Firebase call to use a Query Snapshot, rather than a Get, so that I can instantly see changes on screen if...
View ArticleSvelteKitJS POST 405 Method Not Allowed with Azure Static Web Apps CLI
I'm running into an issue where if I have a form on a page with method="POST" then I'm getting a 405 Method Not Allowed response. I've tried issuing a POST request even with Insomnia but I don't see...
View ArticleThrelte stopPropagation on click event
Using Threlte i can create two shapes in a file like so :<T.Mesh on:click={(e) => console.log("little shape") } ></T.Mesh><T.Mesh on:click={(e) => console.log("bigger shape") }...
View ArticleHow can I have seperate functionality in development and release builds in...
What i am trying to do is have a some debug tools that are present in development builds, eg. yarn run dev but are not accessible in release builds, eg. yarn run buildthanks.I have done some googling,...
View ArticleSvelte and springboot Resumable Upload
I need guidance. I've been looking for a third party library that I can use, to manage the Resumable (resumablejs) upload of a very large file (>5GB). It's important that it be resumable. Please...
View ArticleExclude a page from _layout
Hello I am new to Svelte, Sapper & Express.The problem:I am using Sappers _layout.html to display 2 components (header & menu) that should be displayed on all pages, save for the login...
View ArticleSvelte 5 reactive store methods
The below code is working as it should, I'm just trying to gain a better understanding of why.How is the getCurrentElement method of TestState reactive without the use of $derived()? Are store methods...
View ArticleChange the increment in Svelte's #each logic block
Is it possible to change the increment in the #each logic block?Using a for loop, it's simple to change the increment to 2, for example:for (let i = 0; i < items.length; i+=2) { I get an error when...
View ArticleAre dynamic imports at runtime in the browser (ESM) possible with Svelte?
Edit: I couldn't find a way so I exported the rendering outside the library that must be provided by the user in a callback.I'm updating a Svelte component/framework library (using Vite / Sveltekit)...
View Articleevent.getClientAddress() make the server to throw status 500 in Sveltekit...
Im still new to Svelte. I tried to deploy my basic project to vercel to play around.I have a +page.server.js file that has event.getClientAddress() to get the ip address. When I look through the log...
View ArticleSvelte: is there a way to cache the API result in a way that it won't trigger...
It could be that I'm typing the wrong things in Google and can't get a good answer.Is there a "svelte recommended" way to store the value of a GET result, so that, on every refresh or link switch, the...
View ArticleFilepond - how to add button to each image preview overlay
Using Filepond / Svelte 5, I'm trying to add a custom button to each added image on the image preview overlay. When the button is clicked, it will add the image to every Filepond component within the...
View Article