gornostay25 / svelte-adapter-bun

A SvelteKit adapter for Bun
MIT License
537 stars 34 forks source link

[Bug] `bunx --bun vite build` doesn't throw errors #46

Open KaKi87 opened 9 months ago

KaKi87 commented 9 months ago

Hi,

When there is a SvelteKit bundling error, the bunx --bun vite build command doesn't throw it but quietly generates a .svelte-kit directory without a build directory.

Thanks

KaKi87 commented 9 months ago

Hi @catdadcode would you be willing to enable issues on your fork repo ? Thanks

MyWay commented 8 months ago

Same here.

zainokta commented 7 months ago

I had the same issue, then I tried using npm run build instead of bun run build and changed the adapter to another one for node. Turns out there was an error in my code, after I fixed that error I was able to build it.

KaKi87 commented 7 months ago

Where was the error logged ?

zainokta commented 7 months ago

when using npm run build the error logged on the terminal, like this image

I don't know why when using bun it was not showing the error log

KaKi87 commented 7 months ago

Well, the error not being thrown is the issue then.

The thing is, I'm using exclusive Bun APIs, such as bun:sqlite, so I can't try Node at all.

chevcast commented 6 months ago

Hi @catdadcode would you be willing to enable issues on your fork repo ? Thanks

This is done now. Please feel free to open issues at https://github.com/catdadcode/svelte-adapter-bun/issues.