nuxt-modules / supabase

Supabase module for Nuxt.
https://supabase.nuxtjs.org
MIT License
706 stars 129 forks source link

Add support for Bun runtime #266

Open philliphartin opened 1 year ago

philliphartin commented 1 year ago

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.

nicolaswehmeyer commented 1 year ago

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

rktmatt commented 11 months ago

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 commented 11 months ago

And today it's not working.

CptJJ commented 11 months ago

Same issue here, has anyone gotten this to work?

Artemiy111 commented 8 months ago

Same

thinkvisual commented 7 months ago

Same issue.

anthonyfranc commented 7 months ago

same issue