Cant figure out how to render data pulled from PocketBase in Svelte app
I am trying to pull a List from my PocketBase db and render in a page using svelte.On my page nothing is coming up inside the <ul>This is my +page.svelte file.<script lang="ts"> export let...
View ArticleThree.js BufferGeometry
I'm trying to render 2D polygons onto a canvas using BufferGeometry in three.js (I need the extra performance compared to using Shape). However, when I run this code (I'm using Svelte but I tried to...
View ArticleHow to run SvelteKit & Cloudflare Page locally?
I'm trying to create a new app using SvelteKit & Cloudflare Pages and I'm struggling with running the application locally in a proper manner. Currently, in order to get the app running locally I...
View ArticleHow to change the default port 5000 in Svelte?
I am not getting how to change the default 5000 port in Svelte to some other port if we install the sample template through degit.
View ArticleSveltekit development with workers KV -- hot reloading
Is it possible to use CloudFlare's Workers KV when developing a Svelte/kit application?It is possible to build the app then run wrangler dev when using the CloudFlare Workers adapter:npm buildwrangler...
View Articlerunning svelte dev on https
I'm experimenting with svelte using it's template (https://github.com/sveltejs/template/) as starting point.And I wanted to scan qr codes with https://github.com/nimiq/qr-scanner, but on my pc I don't...
View Articlehow do I design my authenticated requests and my frontend
i am currently working on a project where my backend uses Spring Boot, Spring security + keycloak and runs on localhost:8081.My frontend (svelte) runs on http://127.0.0.1:5173/ and the url...
View ArticleHow to call error() from within an async function in Svelte?
When using error() from inside an async function, the script crashes with this error.Using import { redirect } from '@sveltejs/kit';How can I call error() from within an async function in...
View ArticleUncaught TypeError: Cannot read properties of undefined (reading 'geometry')...
I am getting some errors when I click on any prediction from the google places autocomplete dropdown of predictions. From what I've discovered it getPlace() returns "undefined" the first time it's...
View ArticleTailwind & PostCSS error when adding Svelte to an Astro project
I have been using Astro with Tailwind for a project, however upon adding Svelte to the project with a simple npx astro add svelte, a simple npm run dev produces this error:error Cannot read properties...
View ArticleEven with optional variable flag still getting 'result?.expand' is possibly...
I'm using PocketBase and Svelte to code a small project. In vscode I am getting error syntax highlighting on this code. It is working and in other discussions it sayd the result?.expand should fix this.
View ArticleMake DOM live update with SvelteKit and Supabase
I am using SvelteKit with Supabase. Whenever the form is submitted I would like to see the DOM live update. However, it takes a refresh to see the changes.How would I live update the DOM whenever a new...
View ArticleHow to persist svelte store
Is there any direct option to persist svelte store data so that even when the page is refreshed, data will be available. I am not using local storage since I want the values to be reactive.
View ArticleUsing Svelte + Astro for a frontend with a Flask Backend
Is there anyway to use svelte and astro for a front-end and then some how bundle that together to be used as Backend? I really like all the benefits of svelte and astro for front end and I am familiar...
View ArticleHow to update the page and query parameters in SvelteKit?
I have a page with a search field. If accessed with a query parameter (e.g. ?word=cat) the page should load with results present and the search field filled. If a search is done the results and the...
View Articlerun sveltekit dev with https
Is it possible, in development env, to run SvelteKit app with https?I tried to runnpm run dev -- --https and vite starts the server successfully:VITE v3.0.2 ready in 359 ms➜ Local:...
View ArticleAsto SSR generated code doesn't run on older versions of iOS
I am hosting astro SSR site on Netlify. It works well everywhere except when I test on iPhone 6 and older. Basically all script executions are stopped and the site is no longer interactive.Errors from...
View ArticleIs there is way to preserve the state in astro
I would really like to know if there is a way of preserving states such as user data between routes in astro. I am also using the svelte framework.I tried to use svelte stores but does not seem to...
View ArticleHow to bind events dynamically in Svelte?
In JSX it's possible to bind multiple events to a DOM element like this:<input {...inputEvents}>In Svelte, this is done manually.<input on:input={inputHandler}>This becomes tedious when you...
View Articlehow to listen for event in child component update parent UI Astro file client...
I have a Parent Astro page, where i have a svelete component.i wanna Update some UI on the parent astro page when a button gets clicked in the child svelete componentParent.astro<script> function...
View Article