Open mheob opened 12 months ago
Having the same issue. Using React and Vite and I want to read the contents of a file. This is my code:
const path = url;
const file = Bun.file(path);
const text = await file.text();
and it doesn't work. It gives me "Bun is not defined" error.
I don't know if this is relevant, but I'm using OSX Monterey.
I would also like to be able to use the Quokka extension with Bun
My primary use of Bun is for smaller scripts related to a bigger typescript repo without going through the ts transpilation step If quokka can support bun as an alternative runner, it would be great
Yes, please add Bun support asap. After having tried it I won't be going back to Node
I bought licence as well and didn't check that Bun is not yet supported. I hope it'd be easy since it provides Bun -e
to evaluate the code. Super nice!
Please!
Issue description or question
Bun released its first stable version a few weeks ago. It is also becoming more and more popular.
When I use Quokka with Bun I get this error:
Sample code
Bun provides its API. In my case, I use
Bun.file("foo.txt")
to read the contents of a file.This is just one example of a use.
Sample repository link
The problem should be reproducible.\ But you can also try this repository for testing: https://github.com/mheob/advent-of-code-2023
Quokka.js Console Output
See the description above.
Code editor version
Visual Studio Code v1.84.2
OS name and version
OSX Sonoma (14.1.2)