Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem after dart 2.5.0 update #160

Closed
mstepanov214 opened this issue Sep 11, 2019 · 5 comments
Closed

problem after dart 2.5.0 update #160

mstepanov214 opened this issue Sep 11, 2019 · 5 comments

Comments

@mstepanov214
Copy link

../../.pub-cache/hosted/pub.dartlang.org/mongo_dart-0.3.4/lib/src/network/connection.dart:60:48: 
Error: The argument type 'StreamTransformer<List<int>, MongoReplyMessage>' can't be assigned 
to the parameter type 'StreamTransformer<Uint8List, dynamic>'.
 - 'StreamTransformer' is from 'dart:async'.
 - 'List' is from 'dart:core'.
 - 'MongoReplyMessage' is from 'package:mongo_dart/mongo_dart.dart' ('../../.pub-cache/hosted/pub.dartlang.org/mongo_dart-0.3.4/lib/mongo_dart.dart').
 - 'Uint8List' is from 'dart:typed_data'.
Try changing the type of the parameter, or casting the argument to 'StreamTransformer<Uint8List, dynamic>'.
          .transform(new MongoMessageHandler().transformer)
                                               ^
@ShivamArora
Copy link

I'm facing the same issue.

@obsolete-outdated
Copy link

Same here. dart 2.5 changed some outputs: https://github.com/dart-lang/sdk/blob/master/CHANGELOG.md

i.e. Uint8List.sublist() → Uint8List

@thosakwe
Copy link
Contributor

See this PR: #159

@obsolete-outdated
Copy link

It works with #159, thanks

@thosakwe
Copy link
Contributor

Resolved, see the discussions at #159, #160, and #162. https://pub.dev/packages/mongo_dart/versions/0.3.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants