realm / realm-dart

Realm is a mobile database: a replacement for SQLite & ORMs.
Apache License 2.0
756 stars 84 forks source link

realm_core.dart:2936:31: Error: The method 'asUint8List' isn't defined for the class 'Uint8List'. #1734

Closed shashankmathur8 closed 2 months ago

shashankmathur8 commented 2 months ago

What happened?

Tried building the application got this error. [✓] Flutter (Channel stable, 3.22.0, on macOS 13.6 22G120 darwin-arm64, locale en-IN) • Flutter version 3.22.0 on channel stable at /Users/shashank/Documents/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 5dcb86f68f (7 weeks ago), 2024-05-09 07:39:20 -0500 • Engine revision f6344b75dc • Dart version 3.4.0 • DevTools version 2.34.3

Repro steps

Projects is using realm-1.3.0, the last successful build was around a month ago. Now getting this error.

Version

3.22.0

What Atlas Services are you using?

Atlas App Services: Functions or GraphQL or DataAPI etc

What type of application is this?

Flutter Application

Client OS and version

Ventura 13.6

Code snippets

No response

Stacktrace of the exception/crash you're getting

Error (Xcode): ../../../.pub-cache/hosted/pub.dev/realm-1.3.0/lib/src/native/realm_core.dart:2936:31: Error: The method 'asUint8List' isn't defined for the class 'Uint8List'.

Could not build the application for the simulator.
Error launching application on iPad (10th generation).

Relevant log output

No response

sync-by-unito[bot] commented 2 months ago

➤ PM Bot commented:

Jira ticket: RDART-1061

nirinchev commented 2 months ago

This is fixed in Realm 3.1.0