Closed
Description
../../.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)
^
Activity
ShivamArora commentedon Sep 12, 2019
I'm facing the same issue.
obsolete-outdated commentedon Sep 12, 2019
Same here. dart 2.5 changed some outputs: https://github.com/dart-lang/sdk/blob/master/CHANGELOG.md
i.e. Uint8List.sublist() → Uint8List
thosakwe commentedon Sep 12, 2019
See this PR: #159
obsolete-outdated commentedon Sep 12, 2019
It works with #159, thanks
thosakwe commentedon Sep 17, 2019
Resolved, see the discussions at #159, #160, and #162. https://pub.dev/packages/mongo_dart/versions/0.3.6