You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ bunx sv create sveltekit-bun-app
┌ Welcome to the Svelte CLI! (v0.6.7)
│
◇ Which template would you like?
│ SvelteKit demo
│
◇ Add type checking with Typescript?
│ Yes, using Typescript syntax
│
◆ Project created
│
◇ What would you like to add to your project? (use arrow keys / space bar)
│ none
│
◇ Which package manager do you want to install dependencies with?
│ bun
$ cd sveltekit-bun-app
$ bun dev --open
this works ok, then
$ bun add -D svelte-adapter-bun
update svelte.config.js
// import adapter from "@sveltejs/adapter-auto";importadapterfrom"svelte-adapter-bun";
create build
$ bun --bun run build
test build
$ bun --bun build/index.js
works ok
compile app
$ bun build build/index.js --compile --outfile bun-server
[34ms] bundle 32 modules
[99ms] compile bun-server
$ ll -h bun-server
-rwxrwxrwx 1 sas sas 93M Dec 12 12:43 bun-server*
execute it
$ ./bun-server
Listening on 0.0.0.0:3000
assets cannot be found
console output:
$ ./bun-server
Listening on 0.0.0.0:3000
error: Not found: /
at new SvelteKitError (/$bunfs/root/bun-server:992:7)
at /$bunfs/root/bun-server:18538:18
at resolve2 (/$bunfs/root/bun-server:18449:29)
at resolve (/$bunfs/root/bun-server:18396:42)
at /$bunfs/root/bun-server:18394:49
error: Not found: /favicon.png
at new SvelteKitError (/$bunfs/root/bun-server:992:7)
at /$bunfs/root/bun-server:18538:18
at resolve2 (/$bunfs/root/bun-server:18449:29)
at resolve (/$bunfs/root/bun-server:18396:42)
at /$bunfs/root/bun-server:18394:49
What version of Bun is running?
1.1.38
What platform is your computer?
Linux 6.8.0-49-generic x86_64 x86_64
What steps can reproduce the bug?
reference docs:
this works ok, then
update svelte.config.js
create build
test build
works ok
compile app
$ bun build build/index.js --compile --outfile bun-server [34ms] bundle 32 modules [99ms] compile bun-server $ ll -h bun-server -rwxrwxrwx 1 sas sas 93M Dec 12 12:43 bun-server*
execute it
assets cannot be found
console output:
What is the expected behavior?
the app to work ok
What do you see instead?
the pasted screenshot
Additional information
same issue happens with deno: denoland/deno#26155 (comment)
The text was updated successfully, but these errors were encountered: