#SvelteKit moving from pnpm/node to bun weird error.

1 messages · Page 1 of 1 (latest)

grizzled chasm
#

So maybe i missed some steps but i went into the project. moved to the bun adapter. ran bun install into

bun --bun run dev

and i get

❯ bun --bun run dev
$ vite dev
ENOENT: No such file or directory
   errno: -2
 syscall: "stat"


Bun v1.1.38 (Linux x64)
error: script "dev" exited with code 1

did i miss something? the error dosent feel very helpful either

#

(without the --bun it works fine btw)

#

weird. bun run build works on my machine.

but in my ci/cd i get the same error on build that i get when i try to run dev

2024-Dec-03 12:06:10.767761
#16 [prerelease 3/3] RUN bun run build
2024-Dec-03 12:06:13.378350
#16 5.020 vite v5.4.11 building SSR bundle for production...
2024-Dec-03 12:06:13.548774
#16 5.191 ENOENT: No such file or directory
2024-Dec-03 12:06:13.548774
#16 5.191    errno: -2
2024-Dec-03 12:06:13.548774
#16 5.191  syscall: "stat"
2024-Dec-03 12:06:13.548774
#16 5.191
2024-Dec-03 12:06:13.667551
#16 5.204 
2024-Dec-03 12:06:13.667551
#16 5.204 Bun v1.1.38 (Linux x64 baseline)
2024-Dec-03 12:06:13.667551
#16 5.240 error: script "build" exited with code 1
2024-Dec-03 12:06:13.667551
#16 ERROR: process "/bin/sh -c bun run build" did not complete successfully: exit code: 1
2024-Dec-03 12:06:13.720782
------
2024-Dec-03 12:06:13.720782
 > [prerelease 3/3] RUN bun run build:
2024-Dec-03 12:06:13.720782
0.987         ╵              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2024-Dec-03 12:06:13.720782
0.987 
2024-Dec-03 12:06:13.720782
5.020 vite v5.4.11 building SSR bundle for production...
2024-Dec-03 12:06:13.720782
5.191 ENOENT: No such file or directory
2024-Dec-03 12:06:13.720782
5.191    errno: -2
2024-Dec-03 12:06:13.720782
5.191  syscall: "stat"
2024-Dec-03 12:06:13.720782
5.191 
2024-Dec-03 12:06:13.720782
5.204 
2024-Dec-03 12:06:13.720782
5.204 Bun v1.1.38 (Linux x64 baseline)
2024-Dec-03 12:06:13.720782
5.240 error: script "build" exited with code 1```
gentle oxide
#

but in my ci/cd i get the same error on build that i get when i try to run dev
chances are you dont have node installed, so bun run decides to use bun runtime instead

grizzled chasm
#

but why would i need node?
and yes im using oven/bun:1 as my Dockerimage to test this.

locally i have both installed tho

#

also just tested some things on a new repo. i cant reproduce it. even if i choose pnpm and then move to bun it works fine.

what could i have changed in this project to get a weird No such file or directory

grizzled chasm
#

oh interesting.

as soon as i install @inlang/paraglide-sveltekit the error appears