Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nuxt.config.ts type bug #337

Open
KenZync opened this issue Mar 27, 2024 · 2 comments
Open

nuxt.config.ts type bug #337

KenZync opened this issue Mar 27, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@KenZync
Copy link

KenZync commented Mar 27, 2024

Version

@nuxtjs/supabase: 1.1.7
nuxt: 3.11.1

Reproduction Link

Steps to reproduce

-init new nuxt project
-install supabase
-add config

What is Expected?

should be like this, no error , this is old version nuxt 3.8.2, supabase 1.1.4
image

What is actually happening?

it is throwing error for some reason
nuxt.config.ts

export default defineNuxtConfig({
  devtools: { enabled: true },
  modules: [
    '@nuxt/ui',
    '@nuxtjs/supabase'
  ],
  supabase: {
    redirectOptions: {
      login: '/',
      callback: '/confirm'
    }
  },
})

image

@KenZync KenZync added the bug Something isn't working label Mar 27, 2024
@KenZync
Copy link
Author

KenZync commented Mar 27, 2024

add this into tsconfig.json fix the bug but should it not have to be added?

"compilerOptions": {
"moduleResolution": "node",
}

@selemondev
Copy link

Upgrade nuxt and @nuxtjs/supabase to the latest version and everything will work fine without you having to set the "moduleResolution" to "node" in the tsconfig.json file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants