supabase icon indicating copy to clipboard operation
supabase copied to clipboard

Add support for Bun runtime

Open philliphartin opened this issue 1 year ago • 7 comments

Bun Runtime

Bun has finally released v1.0 and has provided a simple guide to Build an app with Nuxt and Bun.

To use the Bun runtime rather than the node.js runtime, we use the following command: bun --bun run dev

Unfortunately, @nuxtjs/supabase does not appear to work when using the Bun runtime, receiving the following error

❯ bun --bun run dev
$ nuxt dev
[0.05ms] ".env"
Nuxt 3.7.3 with Nitro 2.6.3

  ➜ Local:    http://localhost:3000/
  ➜ Network:  use --host to expose

✔ Nuxt DevTools is enabled v0.8.3 (experimental)

 ERROR  Cannot start nuxt:  {}  

Reproduction Repo

I have created an example repo with a standard base install of a new Nuxt app with this package installed. Repo here: https://github.com/pjhartin/my-nuxt-app-with-supabase-and-bun Just run bun install && bun --bun run dev to get started.

Contributing

I'm unsure how to best contribute to this, but I'm willing to help, so please reach out if you want to pair on this. Thanks.

philliphartin avatar Sep 15 '23 04:09 philliphartin

Same issue here, can confirm. Nuxt3 app is not working when initialized using bun as soon as @nuxtjs/supabase has been added.

nicolaswehmeyer avatar Oct 02 '23 22:10 nicolaswehmeyer

I've had this issue a few days ago, but today it is working after updating both my packages and bun. Can you confirm ?

rktmatt avatar Nov 23 '23 15:11 rktmatt

And today it's not working.

rktmatt avatar Nov 26 '23 21:11 rktmatt

Same issue here, has anyone gotten this to work?

CPTJJ avatar Dec 10 '23 03:12 CPTJJ

Same

Artemiy111 avatar Mar 17 '24 15:03 Artemiy111

Same issue.

thinkvisual avatar Apr 01 '24 02:04 thinkvisual

same issue

anthonyfranc avatar Apr 05 '24 11:04 anthonyfranc