Skip to content

problem after dart 2.5.0 update #160

Closed
@mstepanov214

Description

@mstepanov214
../../.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

ShivamArora commented on Sep 12, 2019

@ShivamArora

I'm facing the same issue.

obsolete-outdated

obsolete-outdated commented on Sep 12, 2019

@obsolete-outdated

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

i.e. Uint8List.sublist() → Uint8List

thosakwe

thosakwe commented on Sep 12, 2019

@thosakwe
Contributor

See this PR: #159

obsolete-outdated

obsolete-outdated commented on Sep 12, 2019

@obsolete-outdated

It works with #159, thanks

thosakwe

thosakwe commented on Sep 17, 2019

@thosakwe
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @ShivamArora@thosakwe@mstepanov214@obsolete-outdated

        Issue actions

          problem after dart 2.5.0 update · Issue #160 · mongo-dart/mongo_dart