Sveltekit static app in webview2 .NET form "tauri like app but in .NET"
I have a project that uses .NET 8 Windows forms with webview2 and a sveltekit app with a static adapterthis is the link to the repoIn the dev mode when I start the dev server in http:/localhost:3005...
View ArticleConditional Rendering of Contents of Navbar
I am trying to conditionally render different parts of my navbar to the user depending on if they are logged in or not. I initially achieved this by using the onMount function, but it is not ideal as...
View ArticleSvelte reactive prop not updating
I am trying to edit the contents of a component containing a text area, inside of a dynamic route. However this code does not update unless I refresh the page even if the variable is set...
View ArticleHow to enable source map in server-side code of production server to make log...
I am developing my application using SvelteKit 2.0 with the JavaScript language.On the development server, the source code appears to be enabled by default, enabling me to pinpoint the exact line...
View ArticleSvelte 5 Runes - unable to bind child component props directly to parent...
In Svelte 5, using Runes syntax, I'm trying to bind a prop from a child component to the prop of a parent component directly.The only way I am able to get this to work is by creating a local state...
View ArticleSvelteKit JS - Unable to change favicon
My package JSON{"name": "WEBSITE_NAME","version": "0.0.1","private": true,"scripts": {"dev": "vite dev","build": "vite build","preview": "vite preview","check": "svelte-kit sync && svelte-check...
View ArticleHow to configure VS Code to run npx vite dev when debugging
I am new to VS Code and JavaScript, and I am trying to make a simple app using Vite and Svelte, but I have a problem which I can't seem to resolve. (My code is currently just the default code given...
View Articlehow install Svelte framewoek with Rails 6+ and Sprocket (no webpack)
I have a Rails 6 app and I want use Svelte on client side onlyI have nodeJS, NPM and Yarn installed.Now, how can I install Svelte to this app without webpack, only using sprocket ?
View ArticleSvelteKit loads favicon every page request
Does anybody have the same problem with SvelteKit? Why does it load the favicon on every page request? see attachment
View ArticleSVG.js addTo() cannot find target DOM on Svelte
I wanted to add a simple SVG example that is manipulatable with SVG.jsI tried this.<main><section class="center"><h1>Hello!</h1><p>This is project...
View ArticleHow to narrow types with Tanstack Svelte query?
ProblemI'm having trouble narrowing types with Tanstack Svelte Query. I am migrating my app from React to Svelte.My query queryGetMyPageCollection() returns either an object PageCollection or false....
View Articlevite cannot connect to dev server via discord activity
Vite cannot connect to the development server backend because discord's CSP says everything other than the page has to use .proxy/.here are the 2 rules in...
View ArticleRandomize items in HTML
I need to shuffle a list of items to create a Captcha module in Svelte, with TypeScript.Currently I'm using the lodash package, but it appears it does not work with Amazon's MTurk, so I need to replace...
View ArticleCan I play an audio file in the background using a service-worker.js file?
Here is what I've tried:// service-worker.jsself.addEventListener('install', function (event) { console.log('Service Worker: Installed');...
View ArticlePython + Svelte, how to use the local filesystem
How to summarize, I have an application written in python.It take a bunch of video files at input.Make some magics and produce a merged video file output.I didn't find a good GUI solution (tkinter, QT,...
View ArticleHow to reduce nativescript (using svelte) output apk file size because it is...
I am make a new fresh project and try to build it. i try with some flag such as uglify, aot, bundle but the size is still too large. Please help.I hope the output size could be reduced for android. I...
View ArticleHow can I deploy SvelteKit IO app with two ports?
I'm using the SvelteKit IO library for sockets in my SvelteKit application.My main application, when built, runs on port 4173. My socket runs on 3001.Here's the SKIO setup code: I can't change 3001 to...
View ArticleMarking a point on an image in Svelte
I'm trying to implement an application where when the user clicks on an image, the coordinates are being saved to variables, and the point of the click is highlighted in red.For this matter I have...
View ArticleRemove the padding in the outer container
I need to calculate the exact location of a point to be drawn on an image. I noticed that there is some padding around the container in which the image is placed, as shown below:And this is the image...
View Articleanimate tailwind tabs component
I created a simple tabs component using tailwind and svelte, like the following one:you can see it working on this replI'd like to animate the transition from one option to the otherSimilar to what...
View Article