web3dart icon indicating copy to clipboard operation
web3dart copied to clipboard

Can't run web3dart with build_runner

Open simonrubin opened this issue 7 years ago • 1 comments

Trying to incorporate the web3dart package into my project. When I run pub get I receive the error:

web3dart ^0.3.0 requires build_runner ^0.8.0.

When I change build_runner to ^0.8.0 my project will not build and I get the error:

The build_runner version – 0.8.3 – is not within the allowed constraint – >=0.8.10 <0.10.0.

Appears I'm in a bind, in need of advice on how to proceed.

pubspec.yaml for reference:

environment:
  sdk: '>=2.0.0-dev.67.0 <3.0.0'

dependencies:
  angular: ^5.0.0-beta
  angular_components: ^0.9.0-beta
  angular_forms: ^2.0.0-beta
  angular_router: ^2.0.0-alpha+15
  firebase: ^5.0.0
  json_serializable: ^0.5.2
  web3dart: ^0.3.0

dev_dependencies:
  angular_test: ^2.0.0-beta
  build_runner: ^0.9.0
  build_test: ^0.10.2
  build_web_compilers: ^0.4.0
  sass_builder: ^2.0.0
  test: ^1.0.0

simonrubin avatar Jul 28 '18 18:07 simonrubin

Well that really sucks :unamused:, sorry that you're getting that. I just tried it out locally and found that any dart project which depends on pointycastle (which this library uses for crypto) is basically incompatible with angular. While pointycastle is now compatible with Dart 2, my understanding is that they are still in the process of updating outdated dependencies. Perhaps this issue might be related to the error you're seeing.

Sadly, there really isn't anything I can do to help you here, this library already uses the latest version of pointycastle, which is where the incompatibilities are coming from.

simolus3 avatar Jul 28 '18 19:07 simolus3