23394

Version conflict between angular_components, rpc and sqljocky

Question:

Is it possible to use angular_components together with rpc and sqljocky packages in Dart? I have a package version conflict and cannot find my way out of it.

I am using Dart VM version: 1.23.0 (Fri Apr 21 03:13:00 2017) on "windows_x64" . My pubspec.yaml for which I can get all dependencies is

name: Project description: Some description version: 0.0.1 author: me environment: sdk: '>=1.20.1 <2.0.0' dependencies: angular2: ^3.0.0 ng_bootstrap: ">=0.5.1" angular_components: ">=0.5.0" plotly: any _discoveryapis_commons: ^0.1.0 crypto: ^2.0.0 http: ^0.11.1 http_server: ^0.9.5+1 logging_handlers: ^0.8.0 # rpc: ">=0.5.0" csv: "^3.1.2" # sqljocky: '>=0.14.1' test: '>=0.12.20' dev_dependencies: browser: ^0.10.0 dart_to_js_script_rewriter: ^1.0.1 transformers: - angular2: platform_directives: - 'package:angular2/common.dart#COMMON_DIRECTIVES' platform_pipes: - 'package:angular2/common.dart#COMMON_PIPES' entry_points: web/main.dart - dart_to_js_script_rewriter

However, as soon as I reintroduce rpc or sqljocky (i.e. remove the comment sign in front of them) and run pub get, I get either an error

Package dart_style has no versions that match >=0.2.10 <2.0.0 derived from: - angular2 3.1.0-beta depends on version >=0.1.8 <2.0.0 - code_builder 1.0.3 depends on version >=0.2.10 <2.0.0

(for sqljocky) or pub get hangs indefinitely with messages like

[...] inconsistent constraints on quiver: uri 0.9.3 from hosted -> quiver >=0.17.0 <0.19.0 from hosted (quiver) angular2 3.1.0 from hosted -> quiver >=0.21.4 <0.26.0 from hosted (quiver) angular_components 0.5.1 from hosted -> quiver >=0.22.0 <0.26.0 from hosted (quiver) version 0.9.2 of uri doesn't match >=0.9.3 <0.12.0: rpc 0.5.6+3 from hosted -> uri >=0.9.3 <0.12.0 from hosted (uri) version 0.9.1 of uri doesn't match >=0.9.3 <0.12.0: rpc 0.5.6+3 from hosted -> uri >=0.9.3 <0.12.0 from hosted (uri) [...]

(for rpc, message edited for legibility). Any suggestions?

Answer1:

A new version of <a href="https://pub.dartlang.org/packages/uri" rel="nofollow">package:uri</a> was published with a wider constraint on <a href="https://pub.dartlang.org/packages/quiver" rel="nofollow">package:quiver</a>, which should fix the issue.

Answer2:

Here's your problem: <a href="https://output.jsbin.com/varenekizi" rel="nofollow">https://output.jsbin.com/varenekizi</a>

rpc -> uri -> quiver <0.22.0

You need a more recent pkg/quiver for angular_compenents.

Fix in pubspec.yaml

dependency_overrides: quiver: 0.25.0

Recommend

  • Error when uploading large file with Paperclip and AWS
  • pub upgrade downgrades my main-packages
  • Whats are the Protractor Supported versions of Firefox, IE and Safari?
  • Unable to access docker containers from host over macvlan network
  • Can't bind to 'control' since it isn't a known property of (myComponent)
  • Angular2 RC1 Pipes Always Passing Undefined
  • How do I enable a submit button if 1 or more checkboxes are checked?
  • Error when use forever in sails
  • angular-tree-component not working in component
  • How to open mat-menu on a single click and close other opened menu if there is any?
  • using js.dart to expose auth0 API
  • Angular 2 Observable.forkJoin this._subscribe is not a function in [null]
  • Can't bind to 'ngValue' since it isn't a known native property\"
  • Random number generator security: BCryptGenRandom vs RNGCryptoServiceProvider
  • Property 'interval' does not exist on type 'Observable'
  • Access Angular 2 Inputs (properties) inside constructor
  • Non-detached PKCS#7 SHA1+RSA signature without M2Crypto
  • Load combined modular typescript file with SystemJS
  • Routing not working in Angular2
  • Wait for a module to be loaded to execute the tests it contains
  • websocket handshake on node.js
  • ERROR in Metadata version mismatch for module
  • npm thinks node is out of date, but it isn't
  • Manage different base layouts in Angular2
  • What are zone turns?
  • Applescript to ping test each client prior to ssh connection
  • Spring Security bcrypt encoding login is not working
  • XOR with Neural Networks (Matlab)
  • Cannot find “Grammar.txt” in python-sphinx
  • pymongo replication secondary readreference not work
  • .NET video play library which allows to change the playback rate?
  • Getting different value with placeholder over CPU/GPU
  • configure: error: no acceptable C compiler found in $PATH
  • Angular2 component view does not update on value change via method
  • Mysterious problem with floating point in LISP - time axis generation
  • how to add data labels for bar graph in matlab
  • bootstrap to use multiple ng-app
  • How to get icons for entities from eclipse?
  • Turn off referential integrity in Derby? is it possible?
  • JaxB to read class hierarchy