Quantcast
Channel: Active questions tagged svelte - Stack Overflow
Browsing all 1539 articles
Browse latest View live
↧

tailwindcss installation error with svelte

hello i try to setup a svelte project with tailwindcss but i encounter this error below when running " npx tailwindcss init -p " i tried to install tailwindcss standalone cli to see if the issue was...

View Article


Questions about using Svelte stores with tree-like nested object

How does one use Svelte store with tree-like nested object? From this answer:Note: bindings only works when it's the same variable. That is, you can't put the bound variable in an intermediate...

View Article


How to pass in parameters from client side to server side code in Sveltekit?

I've been trying to run a query to a Supabase database that needs a dog breed passed through and will return metrics about it, the breed is defined on the client side. I was able to get the server side...

View Article

Fonts with two words in them aren't working in my sveltekit+tailwindcss project

So i have been trying to get fonts from google fonts to work in my project, but for some reason fonts like 'Raleway Dots' or 'Dancing Script' just dont work whereas single word fonts like 'Raleway',...

View Article

How can I add external application bundle in my Tauri app

I'm using Tauri with SvelteKit and I want to include a external application to install with my Tuari app.Here's a quick pass on app flow:Download and install Tuari app on our system. This will include...

View Article


Wrong page gets loaded occasionally

These are the routes of my app that are implied in the problem :-login-forgottenpassword|->[temporary_link]When the user forgets his password, he gos from /login to /forgottenpassword : he then...

View Article

Svelte throws an error as soon as an api call returns with http-code 500

I know that behaviour is probably something good,but i wrote my error messages into the Json response.It looks like the following:{"message": "There was a problem processing the input","code":...

View Article

Using pdfjs in Sveltekit/Typescript

I need to use pdfjs (current 4.1.392) for text extraction in a sveltekit 4 typescript project. This is how I try to import pdfjs into my src/routes/+page.svelte:<script lang="ts">import * as...

View Article


Image may be NSFW.
Clik here to view.

Clicking on `` causes the page to move unnecessarily

Steps:open this REPL in Chrome (no problem in Firefox) -https://svelte.dev/repl/b739483ffedc4e33bc4f6f2626c013ff?version=3.47.0<div style="display: flex; align-items: flex-start;"><!--...

View Article


SvelteKit wait for Firebase onAuthStateChanged before load function

I'm working with SvelteKit and Firebase to build a website. There's a document in my Firestore that only logged in users can accces, I already set a rule for that. The problem that I'm facing is that...

View Article

Image may be NSFW.
Clik here to view.

Laravel10, Interia, svelte setting shows warning

I'm new to svelte and Interia.I've setup an application with Laravel10,Interia and svelte.app.ts goes likeimport { createInertiaApp } from "@inertiajs/svelte";createInertiaApp({ resolve: (name) => {...

View Article

Creating a grid with same cell size but image can take multiple cells?

I thought I am trying to do something simple, but I can't figure out how to do it.I will provide the playground link at the end: I want to create a grid like view where we have a given amount of cells....

View Article

svelte create and pass component as html element

I'm using a library which requires me to create an html element and pass that element. Then the library puts the element in the correct place internally.The problem I'm facing is that the element i...

View Article


How to handle browser URL navigation with Sveltekit SPA and client side routing

We have a custom server that is serving our svelte app on a single URL endpoint. This svelte app is made to be an SPA. Our app has a few pages you can visit, making use of the client side routing for...

View Article

Tailwind CSS styles not rendering in Svelte app

I have setup a svelte app using "npm create vite@latest" choosing to use Svelte and TypeScript. I'm using Vite as the server, and I have also installed TailWind CSS per the instructions here.My...

View Article


Confused about JSON and Array in TypeScript

I get data from the database with Sveltekit and nodejs and always fetching data like that...responseData = await response.json();It returns Object and I can assign it to an arraylet getData =...

View Article

Cannot create Sveltekit app - ERR_TTY_INIT_FAILED uv_tty_init returned EBADF...

When I run the recommended $ npm create svelte@latest myapp, I get the following error: Welcome to SvelteKit!node:internal/errors:490 ErrorCaptureStackTrace(err); ^SystemError [ERR_TTY_INIT_FAILED]:...

View Article


Why don't my images show up on vercel whilst using sveltekit? [duplicate]

I've created a SvelteKit project, then I wanted to deploy it with Vercel. Upon opening the website, the functionality works. However, the images are not appearing and there is the error message "Failed...

View Article

Image may be NSFW.
Clik here to view.

Programmatically add (scoped) class name in Svelte

Code snippet:<script> let coloredText = "This is colored text" let templateString = `This text is programmatically inserted`; let templateHtml = `<span class="colored">I want this text to...

View Article

Problem with Nginx proxy redirection to Svelte application hosted in Droplet...

I want to deploy a sveltekit app to an ubuntu virtual server (v 22.04.3 lts) with local Ghost CMS also runing locally, and using a nginx server proxy to redirect the main '/' to the application and...

View Article
Browsing all 1539 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>