Category "svelte"

Is there a 404 errorcode fallback page for svelte-routing?

This fallback component={NotFound} is the only way i found for error pages but returns a component page with server code 200, i'd like to get code 404. Is there

How to display a package.json version in the footer of the site?

I would like to display a version that is declared in the package.json file in the footer of my site How can I do this? I found this FAQ explanation in their do

near-api-js Failing to connect to near

Was making a svelte implementation of a near app. We have a button that connects to the testnet network. It will open wallet to sign in. When successful, it wil

how to wait for local store value in <svelte:head> in sveltekit

I read this answer about how to wait for component render but it is not working in case of svelte:head this is my code <svelte:head> {#if $theme ===

Bundle JS and CSS into single file with Vite

I'm having a devil of a time figuring out how to build a single .js file from Vite in my Svelte project that includes all of the built javascript and CSS from m

Content is wider than screen on ios

I'm creating a Wordle like app with an on-screen keyboard. When developing on desktop and using dev tools to simulate a mobile screen, it looks fine. But when I

The background becomes black when I add DaisyUI in my SvelteJS+Tailwindcss Project

I was configuring with my SvelteJS and Tailwindcss project with DaisyUI. But every time I add DaisyUI to a Project the background color becomes black. Maybe it'

Get parent node dimensions in svelte

I'm trying to use Svelte and it's my first time so sorry for maybe the stupid question. I read the Svelte documentation but I'm stuck with a simple problem. Bas

Svelte - routing , When I try entering any url I only get "No webpage was found" error

Using "svelte-routing" because I need to load a single page from lots of different urls , with the different urls serving as parameters. For example if a client

rollup run dev aborts

I'm working in a Svelte project with rollup. After working for a while, when I try to restart de project in production to see the changes and I write 'npm run d

Svelte URQL only sends text/plain as a Content-Type

I am trying to make my graphQL requests have a Content-Type of 'application/json` using Svelte and URQL. However, every request has a Content-Type of 'text/pla

Svelte: how to wait for component render

I'm making a simple app based on socket connection. Basically one user is deciding what other users can see. One of functionalities is to start timer for other

How can eslint be configured to work with svelte and postcss-nesting?

Using postcss with plugin postcss-nesting in svelte is quite easy -- adding postcss-nesting to the preprocess config in svelte.config.js is the only thing neede

SvelteKit - Deployment - @sveltejs/adapter-static not updating static paths in fallback page

I'm exploring SvelteKit for the first time, I built my simple first application and I'd like to deploy it to my Apache server as a static page As far as I under

Page not reloading on navigate("/") (svelte-routing)

I am working on a website and there for using Svelte and the svelte-routing library . The svelte-routing library has a method called navigate(path). I use this

Styling issues in monorepo with Turborepo, SvelteKit and Tailwind

I’ve created a monorepo with Turborepo that contains 2 SvelteKit apps and 2 packages: a component library (which is also based on SvelteKit) and a configu

How to make a cumulative filter system in svelte (like amazon sidebar)

I have a svelte page to show a list of post, I need to give the user the ability to filter that list by several conditions, eg: year, tags, category, etc. All t

SvelteKit API requests with Axios JWT authentication

I am creating an app with a SvelteKit client and a Laravel API stack, but I am struggling to safely authenticate my client to my API. Ideally I want to store a

How to style element content in Svelte?

<style> color: red; </style> Some html content! this code does not work. In the Angular framework it can be done by using the :host selector.

Svelte reactive statement with a variable fron onMount

I'm trying to style the currently active tab of my web project with the class "active". To target my tab elements I am using onMount(() => { const li