Skip to content

createBrowserClient brings in a bunch of server deps to the client #92

@natew

Description

@natew

Bug report

This brings ws, crypto, tons of node APIs, etc, causing a much bigger bundle to polyfill or the need to do lots of configuration.

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

Image

To Reproduce

Importing @supabase/ssr createBrowserClient in any Vite app should do it.

Expected behavior

Should export @supabase/ssr/client so we can import just the client code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions