Simulate typewriter-like backspace behavior (overlapping characters)
I'd like to build a simulator for an old LGP-30 computer. This includes in- and output on an - also simulated - Friden Flexowriter typewriter.One of the characteristics of the typewriter is, that when...
View Articleserver crashes when i try to fetch API from +page.ts in SvelteKit
import { getCustomerSupportsApi } from 'rpc';export async function load() { try { const data = await getCustomerSupportsApi(); return { data }; } catch (error) { console.error('Error occurred while...
View ArticleBuilding tooltips in Svelte or NextUI or anything else?
I'm trying to do something relatively simple, but I'm in no way a designer--this would basically be a chunk of custom code in SquareSpace.I'm trying to do an interactive series of annotations to images...
View ArticleSvelte how to wrap an on:click event in a child and await the parents function?
I'm trying to make a button component that will hide the button and display a spinner when it is clicked and is waiting for some asynchronous job to complete, and then hide the spinner and display the...
View ArticleHow to use Svelte transitions with a click function instead of inline?
I want a simple animation/transition in Svelte. Basically, you click a button, a "ghost of the button" or the button itself rises up and fades into the ether, then returns to its original position if...
View ArticleAdapter static doesn't properly crawl links in svelte components
Error: The following routes were marked as prerenderable, but were not prerendered because they were not found while crawling your app: - /changelogI got this error and running build with my...
View ArticleDaisyUI loading twice in terminal
I am using Svelkit and DaisyUIWhen I do a 'npm run dev' in VS CODE the response in the terminal shows DaisyUI "twice".➜ Network: use --host to expose� daisyUI components 2.24.0...
View ArticleHow to prevent intellisense completion in .svelte files in VScode
When I am writing code in a .svelte file, if I press the . key (full stop/period) the intellisense autocompletes. So if I write an import statement in a scrip tag with a relative path such as:import...
View ArticleVS Code: The Svelte server crashed 5 times. Cannot find module...
Happens when saving and Prettier tries to format the code. Can anyone help me with this error? It's driving me insane.Here's the error log:Error: Cannot find module @rollup/rollup-win32-x64-msvc. npm...
View ArticleHow can I create a swipeable calendar/date picker, that dynamically adds the...
I'm working on a calendar component for my web app, and really struggling to allow swiping through the months.I created a CalendarMonth component that takes a month and year prop to render all the...
View ArticleSvelte Kit GET by Id gives me 404 Not Found
I am working on a Svelte - Java Spring - MongoDB CRUD app, were i need to handle the 4 HTTP Requests : GET, POST, DELETE, UPDATE.I have the following problem. When i try to access the following url :...
View ArticleCall a +page function from +layout
I have a project set up in this way+layout.svelte+page.svelteComponent.svelteThe component lives in +layout.svelte, because I need it also in nested routes. The component dispatches a custom event,...
View ArticleHow to run SvelteKit & Cloudflare Page locally?
I'm trying to create a new app using SvelteKit & Cloudflare Pages and I'm struggling with running the application locally in a proper manner. Currently, in order to get the app running locally I...
View ArticleSetting up SvelteKit CRUD routing with [id] parameter
I am working on a Svelte - Java Spring - MongoDB CRUD app, were i need to handle the 4 HTTP Requests : GET, POST, DELETE, UPDATE.I have the following problem. When i try to access the following url :...
View ArticleHow to Re-render a component in +layout.svelte
How to re-render a component in +layout.svelte, whenever the userType changes?I am expecting to switch a navbar state between login and logout, navbar state depends on currentUserType.i have a store...
View ArticleVite build stuck on 'modules transform'
While building a svelte application with vite, the build process gets stuck on 'modules transform'. No error is reported on the building logs.I've tried several things, including but not limited...
View ArticleLoading data only once in Svelte Kit and when to use page.js vs layout.js for...
I have two questions related to SvelteKit, the first one is:1. How to load data only on the first page load?I'm currently loading some global data from my layout.js file, such as user information....
View ArticleELK Layered algorithm with SvelteFlow
I'm using Elkjs and SvelteFlow to layout nodes inside a subflow as the one shown in the screenshot (left). I have tried many of properties for the ELK Layered algorithm...
View ArticleSveltekit: Cannot call `fetch` eagerly during server side rendering with...
I am struggling with an error trying to put together an infinite scroll table.It works fine until I refresh the page and then I get the error "Cannot call fetch eagerly during server side rendering...
View ArticleSvelte transition with spring instead of duration+easing
I have been following the CSS-tricks article on running Svelte transitions with spring, instead of the usual duration+easing methos. The final result shows spring applied on a transform transition,...
View Article