Closed wineTGH closed 2 months ago
@wineTGH the error comes from swagger and the execution of the bun script within Elysia. Bun seems to behave differently here. There is a promise response from which is not executed with sveltekit. So if you change .use(swagger()) to .use(await swagger()), it will work.
@tguelcan Oh god, that actually worked, thank you! It solved all of the problems. If only you'd come into my life sooner :) I had to use +server files because of the deadline.
What version of Elysia is running?
1.1.5
What platform is your computer?
Linux 6.9.12-200.fc40.x86_64 x86_64 unknown (I'm running Fedora 40)
What steps can reproduce the bug?
Hi! I've followed this page and I have a realy weird behavior. Every time I try to make navigate to route, it downloads content of page as a file. When I try to navigate to page with a swagger plugin, app just crashes with this error:
Here the code that I'm using:
What is the expected behavior?
Just work™
What do you see instead?
Additional information
I'm starting app with this command
bun --bun run dev
Have you try removing the
node_modules
andbun.lockb
and try again yet?yes