supabase / supabase-flutter

Flutter integration for Supabase. This package makes it simple for developers to build secure and scalable products.
https://supabase.com/
MIT License
708 stars 167 forks source link

Object cannot be assigned to the parameter type Map<dynamic, dynamic> #989

Closed PcolBP closed 2 months ago

PcolBP commented 2 months ago

Describe the bug After newest version 2.3.0 I cannot build my web application, had to force downgrade it to 2.2.0 since Supabase uses automatically 2.3.0

To Reproduce Build Web Application

Expected behavior

Error: The argument type 'Object' can't be assigned to the parameter type 'Map<dynamic, dynamic>'.
 - 'Object' is from 'dart:core'.
 - 'Map' is from 'dart:core'.
        bodyStr = await _isolate.encode(body);

Version (please complete the following information): On Linux/macOS Please run dart pub deps | grep -E "supabase|gotrue|postgrest|storage_client|realtime_client|functions_client" in your project directory and paste the output here.

dart pub deps | grep -E "supabase|gotrue|postgrest|storage_client|realtime_client|functions_client"
│   ├── functions_client 2.2.0
│   ├── supabase_flutter 2.5.1
│   │   ├── supabase 2.2.5
│   │   │   ├── functions_client...
│   │   │   ├── gotrue 2.8.3
│   │   │   ├── postgrest 2.1.2
│   │   │   ├── realtime_client 2.2.0
│   │   │   ├── storage_client 2.0.2

Additional context Flutter Doctor

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.22.3, on macOS 14.5 23F79 darwin-arm64 (Rosetta), locale pl-PL)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.1)
[✓] VS Code (version 1.91.1)
[✓] Connected device (4 available)
[✓] Network resources

• No issues found!
dshukertjr commented 2 months ago

I can confirm this happening. Will ship a fix ASAP. Thanks for reporting.

dshukertjr commented 2 months ago

For now, the latest version has been retracted.