elysiajs / elysia

Ergonomic Framework for Humans
https://elysiajs.com
MIT License
10.15k stars 217 forks source link

bun update upgraded to alysia 1.0.13, and app broken with content-type plain #614

Closed khowling closed 5 months ago

khowling commented 5 months ago

What version of Elysia.JS is running?

1.0.13

What platform is your computer?

Ubunutu 22.04

What steps can reproduce the bug?

 .use(html())
    .get('/html', () => 
        <html lang='en'>
        <head>
            <title>Hello World</title>
        </head>
        <body>
            <h1>Hello World</h1>
        </body>
    </html>
    )

What is the expected behavior?

browser shows html code, not the webpage, content-type is plain

What do you see instead?

No response

Additional information

No response

khowling commented 5 months ago

bun update moved elysia to v1, as package.json had "latest", but @elysiajs/html was pegged at v0. Ran bun update @elysiajs/html to resolve