All Questions
257 questions
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="...
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 ...
-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 ...
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 ...
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] ...
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 ...
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 ...
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 ...
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>...
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 ...
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/...
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 ...
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', '...
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-...
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 ...