Skip to content

Unknown provider: supabase #2107

@marco-land

Description

@marco-land

When configuring the Supabase provider as described in the documentation, TypeScript throws an error on the provider.

Config

export default defineNuxtConfig({
  image: {
    supabase: {
      baseURL: 'https://<project-id>.supabase.co/storage/v1/render/image/public/<bucket-name>'
    }
  }
})

Error

Uncaught (in promise) Error: Unknown provider: supabase
    at getProvider (image.js?v=517378ce:83:11)
    at resolveImage (image.js?v=517378ce:45:31)
    at getImage (image.js?v=517378ce:11:19)
    at $img (image.js?v=517378ce:17:48)
    at ComputedRefImpl.fn (NuxtImg.vue:73:41)
    at refreshComputed (reactivity.esm-bundler.js?v=517378ce:361:29)
    at get value (reactivity.esm-bundler.js?v=517378ce:1636:5)
    at NuxtImg.vue:101:17
    at runtime-core.esm-bundler.js?v=517378ce:3079:40
    at callWithErrorHandling (runtime-core.esm-bundler.js?v=517378ce:197:19)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtypes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions