Results for sveltekit
I follow a tutorial how to create toast messages. I have to bind the message to the addToast method when I click the submit button. If you look at the...
Sveltekit has very strict a11y checks, for instance you can't just add on:click to a div. I can suppress it on a per-line bases, e.g.: div on:click=...
I'm trying to build a art portfolio in SvelteKit, following the SvelteKit tutorial. I have a page called art/, which has a subdirectory called [collec...
I am using SvelteKit, Vite.js, and the mariadb package with Node.js in my application. I have the following code in the db.js file: import mariadb fro...
I'm new to Sveltekit, and I need to add Facebook authorisation to my website. I am using TypeScript in my project. Maybe some of you have experience w...
I have a form in src/routes/[[lang]]/contact/+page.svelte method="POST" id="contactForm"> All the buttons of the form have on:click|preventDefault and...
All of a sudden the vite build command is giving me the following error when I try to build my svelte project. I reverted to an earlier version from g...
I'm learning docker so I want to test a Sveltekit app locally on a docker container but I was unable to make it work. This is my setup: # svelte.confi...
I have to following folder structure and I'm struggling to find the best way to provide my main layout with some props. src/ └── routes/ └── (app)...
I recently updated SvelteKit, Svelte, and Vite all at once. Following the updates, none of my Svelte third party libraries have been working. I've bee...
I am building a site with SvelteKit. As of now I included Bootstrap 5 in my project by adding it to the app.html file provided by the SvelteKit Skelet...
I am building a site with SvelteKit. As of now I included Bootstrap 5 in my project by adding it to the app.html file provided by the SvelteKit Skelet...
I already have the backend with an API for my application and now wanted to add the frontend with SvelteKit. Since I dont want my API to be available ...
If I build the project locally and view the preview, everything works fine. If I deploy it to gh-pages only HTML is shown and JS & CSS cannot be loade...
I am trying to create a Sveltekit app where users can log in. The login process is handled by a self-created API, so I would like to use the Auth.js C...
I have a page with content rendered from a SvelteKit store. If the store is invalid, a user needs do be redirected to the homepage. Unfortunately, I ...
I have a route structure /items/[category]. When the user is browsing /items/category1 and then tries to go to a another page in the same route (eg. /...
I want to use environment variables in my Sveltekit app - it works fine on dev server, but I get this build error: Error: 'PUBLIC_KEY' is not exported...
I'm trying to use actix and SvelteKit. I'm confused on how to build the svelte app. I have multiple routes defined in the svelte app. My svelte.config...
As far as I understand, to create a route in sveltekit, you need to follow these rules: Create files within src/routes folder Name them according to ...
I am trying to serve a PDF file that my SvelteKit app generates and allow a user to download it from an endpoint. My project structure looks like this...
I get error message this when build. Cannot access url.searchParams on a page with prerendering enabled How to load and use get parameter? svelte.co...
I am deploying sveltekit to a dfinity container and I need to disable minification to debug. I have to build a static version to deploy it with npm ru...
Port 3000 is occupied in my hosting server. Now I'm building a sveltekit app. When I use npm run dev --port 4000 or npm run build and then npm run pre...
I have a component and onDestroy() doesn't seem to fire on route changes. I need to close the menu when the route changes otherwise the menu stays op...
How do I undo the most recent local commits in Git?
How can I remove a specific item from an array in JavaScript?
How do I delete a Git branch locally and remotely?
How can I find all files containing a specific text (string) on Linux?
How to find all files containing specific text (string) on Linux?
How do I revert a Git repository to a previous commit?
How do I create an HTML button that acts like a link?
How do I check out a remote Git branch?