Category "svelte"

Deploying Svelte App to Heroku / Dokku fails because modules cannot be found

I am having problems deploying my svelte web3 App to my VPS running Dokku. The structure of the folder is as follows: root |-->svelte |--> ... I found s

SvelteKit and caching the component output in server-side rendering

I have a SvelteKit landing page component that calculates and displays statistics. Because crunching the numbers out from the database is a heavy job, and this

Why use a factory for a custom store vs. just exporting an object

I'm going through the Svelte tutorial and I'm on the custom store page (https://svelte.dev/tutorial/custom-stores). The sample code is written using a factory f

Is Svelte limited to single-page applications (SPA)?

The Svelte documentation states that: Svelte converts your app into ideal JavaScript at build time, rather than interpreting your application code at run time.

Why doesn't my website stop loading (Svelte)

I made a portfolio website, but this site doesn't stop loading. Sorce code is here. Does anyone have a solution? or the reason why this happens?

Svelte: Uncaught ReferenceError: exports is not defined

Background I am trying to use dgraph-js-http in a Svelte application. Error The initial error I was facing was: Uncaught ReferenceError: buffer is not defined

Sveltekit how do I set checkboxes checked based on query params?

I am trying to set checkboxes active based on query parameters using Sveltekit. To achieve this, I tried to get all route query parameters using the 'url.search

How do I deploy a sveltekit app to a dfinity container?

Difinity is a blockchain container. I need a rock solid example on how to deploy a standard sveltekit app to it. Their web page doesn’t cover sveltekit ht

Svelte: Remount component to overwrite media elements

Context In my Svelte app, I have multiple pages, each showing one or multiple videos. For rendering the videos I reuse a video component (simplified): // video

adding dynamic class name in svelte

I am currently writing an app with svelte, sapper and tailwind. So to get tailwind working I have added this to my rollup config svelte({ compilerOption

static adapter not working with nginx and refreshing pages

This is my config: import adapter from '@sveltejs/adapter-static'; import preprocess from 'svelte-preprocess'; import path from 'path'; /** @type {import('@sve

svelte component-library intellisense for exported properties

I have created a small component-library for myself based on this GitHub Repo: https://github.com/sveltejs/component-template This works fine and i have uploade

Sveltekit communication between layout, routes and components

I'm trying to move a svelte SPA into Sveltekit. In my SPA, the communication schema is what I would call a "controller component" which takes care of displaying

How to setup global bootstrap via scss in Svelte?

I want to use Bootstrap (v4.5) in a Svelte (v3) project with custom theme. The bootstrap documentation states that you can do this with scss. So I've setup Svel

How can I address a Netlify function with Svelte?

I have written a vanilla html app to test a Netlify function and it works I have attempted to write a Svelte application to mimic the same functionality The two

Svelte/SvelteKit: Dynamic import of components with variable

I want to dynamically import components without importing a specific component. I want to set the component name with a variable, received from the store: <s

ESLint error "'svelte' is not defined" when using svelte.JSX.MouseEventHandler

In a SvelteKit project, I have included the a svelte type. My problem is that my linting (ESLint) throws an error saying that 'svelte' is not defined. My code i

Testing Svelte components with dynamically imported components in jest (await import)

I'm writing a test in jest for a svelte component which dynamically imports another component. The following snippet is the part where the dynamic import happen

How to route programmatically in SvelteKit?

I want to be able manage history of my SvelteKit app while simultaneously making sure the whole routing system of SvelteKit doesn't get affected in any way. Som

can I change Svelte delimiter?

I am working on a big project that use Smarty template engine with AngularJs and we need to move out from AngularJs to Svelte. we face a bad problem that the de