Skip to main content

All Questions

Tagged with
0 votes
1 answer
61 views

css gets transitioned at first mount

I have a svelte app that mounts some progress dots into a pretty plain html site. simplified the ProgressDots.svelte has this: hello <div class="progress-dots"> <div class="...
munHunger's user avatar
  • 3,061
0 votes
1 answer
40 views

Building Svelte Kit application for deployment on Azure webapps

I have built a Svelte Kit application that utilises a couple of Microsoft Graph endpoints to pull from our internal news SharePoint sites. It works perfectly fine in dev and when I use the preview ...
Charlie's user avatar
-1 votes
0 answers
34 views

Svelte (vite?) installing static resources

How can I make static resources (e.g. fonts/images) in a node_modules package available in a Svelte application? I'd like the process to be automatic so you don't have to do anything manual if you use ...
vogomatix's user avatar
  • 5,091
1 vote
1 answer
89 views

Laravel 12 Breeze with Svelte multiple file compiling in Vite not working

I am trying to add Svelte components to a Laravel Breeze setup that already has Bootstrap 5.3. The 'vite.config.js is setup and uses the build property to extract all assets to seperate files (this ...
Hmerman6006's user avatar
  • 1,991
0 votes
0 answers
81 views

Vite not building the CSS when an imported LESS file is modified

My main.js file (entry point) is importing _app.less. And _app.less is in turn importing several LESS files. But, whenever I modify an imported LESS file, I can see a hmr event in the console ([vite] ...
Aghyul Kyoku's user avatar
  • 1,058
1 vote
1 answer
769 views

How do I use postcss with Svelte and Tailwind? Upgrade seems to cause issue with "@tailwindcss/postcss"

I blew away my package-lock and upgraded everything to the latest now when I try to build I get... [plugin:vite:css] [postcss] It looks like you're trying to use `tailwindcss` directly as a PostCSS ...
Jackie's user avatar
  • 23.7k
1 vote
1 answer
179 views

vite build for SvelteKit continues to say "No adapter specified" for static adapter

I'm trying to use the static site generator adapter for SvelteKit. I tried making a clean minimal SvelteKit project using npx sv create my-app and added adapter-static and verified that it worked, yet ...
ROODAY's user avatar
  • 832
0 votes
0 answers
58 views

Removing SCSS included file warnings

I am building a Svelte project which relies on GDS components and styling from GOV UK frontend, and I get a lot of error messages similar to the one in the Warning message section below. Is there a ...
vogomatix's user avatar
  • 5,091
1 vote
2 answers
369 views

controlling css order in vite dev server

I have a webpage, that loads a script from a vite dev server. so at the end of body I have this tag <script type="module" src="https://localhost:5173/index.ts"></script>...
munHunger's user avatar
  • 3,061
0 votes
1 answer
91 views

Serving .js and .css from Vite + Svelte to a static website

I have a pre-existing website using a popular website builder. I want to be able to inject interactive svelte components on certain blog pages to help demonstrate concepts. I got a rough prototype ...
learyjk's user avatar
  • 731
1 vote
1 answer
313 views

SvelteKit: "No overload matches this call" error invite.config.js when working with vitest

I just created an app with pnpx sv create sveltekit-test2 and checked vitest and now when I run pnpm check I get this error: Loading svelte-check in workspace: /home/sas/devel/apps/dgiit/proyectos/tmp/...
opensas's user avatar
  • 63.8k
0 votes
2 answers
581 views

Svelte 5, Problem with tests, why am I getting this overload error in my vite.config file and how do I fix it?

Github Repo: https://github.com/Gaban-Ventures/crypto-basis-frontend With the latest commit you have to run npm install --legacy-peer-deps To run normal before the breaking tests, do: git co ...
Leon Gaban's user avatar
  • 39.1k
0 votes
0 answers
26 views

Dynamic import of fortawesome pro icons in svelte / vite

I'm attempting to dynamically import fortawesome icons in my sveltekit project, and struggling with the proper format. This is my test: onMount(async () => { let icons = ['faGear', '...
chuckieDub's user avatar
  • 1,845
0 votes
0 answers
95 views

How to set headers for assets within _app/immutable/workers?

I've successfully built a SvelteKit app, but when I try to run npm rum preview, I see that the following asset was unable to be loaded: http://localhost:4173/_app/immutable/workers/shout.wasm.worker-...
jh314's user avatar
  • 27.9k
0 votes
0 answers
101 views

How to import and serve wasm.js library in Svelte with the right response headers

Context I have a Svelte 4 app where I'm trying to use transcribe.js library: https://github.com/TranscribeJs/transcribe.js?tab=readme-ov-file#webserver, which requires that all response headers ...
jh314's user avatar
  • 27.9k

15 30 50 per page
1
2 3 4 5
18