angulardart / angular

Fast and productive web framework provided by Dart
https://pub.dev/packages/angular
MIT License
1.83k stars 233 forks source link

Can't work together with grpc-dart-web #1958

Closed heihuhu310 closed 3 years ago

heihuhu310 commented 3 years ago

Hi, I want to use AngularDart with gRPC-dart-web for web application, but I found the library crypto they dependency is not incompatible:

AngularDart 6.0.0.1 require crypto ^2.0.0 from analyzer >=0.39.5 <0.41.2 gRPC-dart-web(gRPC 3.0.0 in pub.dev) require crypto ^3.0.0

Dart SDK Version: Dart SDK version: 2.12.2 (stable) (Wed Mar 17 10:30:20 2021 +0100) on "macos_x64" AngularDart Version: 6.0.0.1 Platform: MacOS X Browser: Chrome

Thank you!

Reductions commented 3 years ago

Try using grpc version 2.9.0.

matehat commented 3 years ago

AngularDart 6.0.1 seems to depend on analyzer ^1.0.0 though, which depends on crypto ^3.0.0

Reductions commented 3 years ago

AngularDart 6.0.1 seems to depend on analyzer ^1.0.0 though, which depends on crypto ^3.0.0

Not true. Angular 6.0.1 depends on analyzer version 0.40.0. What you see there is the master branch that contains an effort to migrate to NNBD.

matehat commented 3 years ago

Ah! Good catch

heihuhu310 commented 3 years ago

@Reductions Thank you so much, AngularDart 6.0.1 can work togther with gRPC 2.9.0 for web application.