4

Using the "bun create..." command, I could create a "react" and also "next" project. It was straightforward following the instructions on the bun.js git repository.

How can I use "Quasar Framework" and/or "Vue 3" with bun.js?

"bun install -g @quasar/cli" is working fine but when I try to create a quasar project (quasar create...) then I get the message: "/usr/bin/env: ‘node’: Permission denied"...

It looks like Quasar is trying to find "Node.js" instead of "Bun.js".

Any ideas how can I make it works with Quasar | Vue3?

Thiago Araujo
  • 149
  • 2
  • 14

1 Answers1

0

The problem is that Bun.js is still missing a few packages like readline. See also here https://github.com/oven-sh/bun/issues/311.

bun --bun run quasar

Runs quite well and gives an output.

bun --bun run quasar build

Gives you the following error message.

error: Cannot find package "readline" from "/home/<user>/<project>/node_modules/@quasar/app-vite/lib/helpers/logger.js"
error: "quasar" exited with code 1 (SIGHUP)

I think we still have to wait for a stable v1.0.

Update 18.01.2023

With Bun v0.5.0 we are getting a little closer to the goal. Unfortunately the worker_threads support is still missing and therefore quasar build still fails.

quasar build output

Jkey
  • 1
  • 1