All Questions
8 questions
1
vote
2
answers
11k
views
How do I integrate MYSQL with Sveltekit / nodejs
Typically for a nodejs project I just follow this standard example:
var mysql = require('mysql');
var connection = mysql.createConnection({
host : 'localhost',
user : 'me',
password ...
12
votes
5
answers
28k
views
Running svelte dev on server
I am running svelte like this on my server:
$ npm run dev
Your application is ready~! 🚀
- Local: http://localhost:5000
────────────────── LOGS ──────────────────
Which is great. However, ...
5
votes
1
answer
2k
views
Cookies are not getting set when running with --host option in official SvelteKit example
I am trying offical SvelteKit example https://realworld.svelte.dev/.
Its code is hosted at https://github.com/sveltejs/realworld
login and everything works fine when I run npm run dev
but when I run ...
26
votes
6
answers
27k
views
Cannot find module './App.svelte' or its corresponding type declarations
I have a setup that integrates electron with svelte along with typescript support.
when I run the rollup script to compile svelte app, i am getting cannot find module ./App.svelte error as shown below....
11
votes
2
answers
6k
views
SvelteKit: Packages not being able to access node functions
I am building an app with SvelteKit and publishing it to Cloudflare Pages, but it is some packages I am using are not able to access node native functions. Here's the build log:
2022-07-30T19:05:14....
4
votes
1
answer
2k
views
I cant get rollup to compile properly when using dynamic imports and crypto-js in my svelte web app
I recently tried to codesplit my svelte web app for each page, but I haven't been able to get it to work while using the crypto-js package. If i remove the package everything works. The js compiles ...
3
votes
1
answer
2k
views
I have some questions about Sapper/Svelte
I just started using Sapper (https://sapper.svelte.technology) for the first time. I really like it so far. One of the things I need it to do is show a list of the components available in my ...
1
vote
1
answer
2k
views
Sapper session not setting properly in production build without page reload
I'm working on a project using Sapper, and been struggling with something for a bit now – can't quite figure it out. I'm using Polka for my server (it was included with the sveltejs/sapper-template#...