6,303 questions
-1
votes
1
answer
44
views
Electron IPC: File objects arrive as empty objects {} in main process
Problem
I'm trying to send multiple files from the renderer process to the main process using Electron's IPC, but the file objects arrive empty.
Renderer Process:
if (files?.length > 1) {
window....
0
votes
0
answers
32
views
Svelte with SVAR dynamic DataGrid: forced update
I'm trying to implement data logger using Svelte and SVAR's dynamic DataGrid.
Log data array is updated by polling REST API with a given interval (I'm using REST mockup for now).
For the first rows ...
Tooling
1
vote
0
replies
32
views
What extension/CLI to use to detect circular dependencies on .svelte files with VSCode
I'm working with Svelte 4, using VSCode, and I need to find a way to detect circular dependencies in my project.
I'm on a monorepo (with npm workspaces) and struggling to make it work with ESLint. ...
0
votes
1
answer
48
views
Svelte not reactive to prop
I have a contact form with this state:
let form = $state({
name: "",
email: "",
files: ([] as any[]),
});
In my HTML I am binding files to my FileInput component:
<...
-1
votes
1
answer
69
views
Tailwind css migration error: "Cannot apply unknown utility class" [closed]
I have a fairly large svelte kit tailwind project.
I updated all dependencies to latest, including TailwindCSS. My current dependencies are as follows:
{
"devDependencies": {
// ....
-1
votes
0
answers
48
views
Error "[Layer Chart] You set `yNice: true` but the yScale does not have a `.nice` method. Ignoring..."
When attempting to reproduce the punchcard graphic from LayerChart documentation, I get the following result:
Playground demo
[Layer Chart] You set yNice: true but the yScale does not have a .nice ...
Advice
0
votes
0
replies
51
views
Automerge as svelte-flow backup
Just to prime - The following question is about understanding why automerge, indexedDB adapter and svelte-stores behave in a specific way - I'm not searching for code debug and just put the code in a ...
0
votes
0
answers
39
views
Dynamic routes not working in Routify 3 with Vite 5 — _metaTree becomes empty after dev server restart
I’m using Routify v3 with Vite 5 and Svelte, and I’m facing an issue where dynamic routes stop working after saving code changes (Ctrl + S) during development.
{
"@roxi/routify": "^3....
0
votes
1
answer
50
views
Codeblocks not rendering correctly with MDsvex
I am trying to render markdown posts fetched from a git repo in my Svelte 4 webapp/blog using mdsvex.
The markdown mostly renders correctly, but the ``` code blocks dont render corerctly.
The ...
2
votes
1
answer
56
views
Is there a way to exclude specific dates using Flowbite-Svelte's Datepicker?
I am working on a simple website, using SvelteKit. For the UI, I use Flowbite-Svelte and some of its components.
During early stages of development, I just used the availableFrom property. Now I want ...
0
votes
0
answers
65
views
Firebase signInWithRedirect always returns null after redirect
I am using Firebase Authenticatioin in my svelte app.
I called getRedirectResult in onMount and if it returns null, then, I call signInWithRedirect and getRedirectResult again.
I confirm that the page ...
1
vote
1
answer
50
views
Is it possible to short-hand forward child component exports in Svelte 5?
If I have a child component, for example Dialog.svelte, which exports some const values:
<script lang="ts">
// Just to illustrate that this is a Svelte 5 component
let { title }: { ...
Advice
6
votes
7
replies
354
views
What are the kinds of practical difficulties you've run into when implementing Microfrontends?
Our current codebase exists as a monolithic .NET application. The many years of legacy has made it difficult for our engineers to make changes and we're looking to Strangler Fig our way out of a Big ...
1
vote
0
answers
88
views
Problem with toHaveBeenCalledWith called from window object
This is my unit test:
import '@testing-library/jest-dom/extend-expect';
import {
render,
cleanup,
fireEvent,
waitFor,
waitForElementToBeRemoved,
screen,
} from '@testing-library/svelte';
...
0
votes
1
answer
69
views
Is this binding_property_non_reactive really correct?
Reproduction
https://svelte.dev/playground/2c859a9c620b4b9a8422c2596df4c209?version=5.42.3
Using Svelte (v5.42.3) and Svelte Kit (v2.48.2) and @tanstack/svelte-query (v6.0.3).
If I have the component ...