Cannot use SupabaseClient
without dart:html or dart:io in Edge functions
#666
Labels
bug
Something isn't working
Describe the bug
The
SupabaseClient
constructor throws"Cannot create a client without dart:html or dart:io."
error when used in Dart Edge functions.An error message looks like the following:
To Reproduce
main.dart
:pubspec.yaml
:Steps to reproduce the behavior:
dart_edge
function using Postman/curl/etc.Internal Server Error
response and an error message in the functions console.Version:
supabase_flutter_test 1.0.0
├── supabase 1.11.9
│ ├── functions_client 1.3.2
│ ├── gotrue 1.12.4
│ ├── postgrest 1.5.1
│ ├── realtime_client 1.3.0
│ ├── storage_client 1.5.3
└── supabase_functions 0.0.2+4
Additional context
flutter doctor
output:The text was updated successfully, but these errors were encountered: