Skip to content

Web incompatibility due to import of dart:io #1219

Description

@kaboc

My web app fails to build with supabase 2.8.0 or newer because #1130 reintroduced an import of dart:io. There was no issue when using 2.7.0.

You will either need a conditional import, or probably better use a constant to guard web with a definition like the kIsWeb in flutter

The above is an excerpt from #1130. I don't think kIsWeb helps there. A conditional import should be necessary.

Screenshot:

The package no longer lists Web as a supported platform on pub.dev.

Version:

supabase >=2.8.0

Additional context

This is the third time I've reported a similar issue. The previous issues were:

Since this problem has recurred multiple times, I think it's important to implement a test to prevent future regressions. If writing a test isn't feasible right now, at least a manual check should be done instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    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