Closed maksym-tielnyi-solid closed 1 year ago
It seems that this issue was caused by the 1.3.0 version of the realtime_client package, overriding it to version 1.2.3 helped.
dependency_overrides:
realtime_client: 1.2.3
Related issue: https://github.com/supabase/supabase-flutter/issues/666
Describe the bug The
SupabaseClient
constructor throws"Cannot create a client without dart:html or dart:io."
error when used in Supabase Dart Edge functions with the supabase_functions package. 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: