-
-
Notifications
You must be signed in to change notification settings - Fork 259
Description
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:
- Cannot build web app with pure Dart #641
- Cannot build a Dart web app due to dependency on dart:io in gotrue 1.12.3 #658
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.