polymer-dart / todo_ddc

15 stars 3 forks source link

Polymer version conflict #1

Closed ErikGrimes closed 7 years ago

ErikGrimes commented 7 years ago

I get this error when I build the project

INFO: Found 1 target...
INFO: From Download JS dependencies with bower.json:
Running bower with bazel-out/local-fastbuild/bin/bower.json
Downloading JS components
Bower install finished :  , bower                        ECONFLICT Unable to find suitable version for webcomponentsjs

ERROR: /Users/egrimes/Documents/Development/third_party/polymer_dart/todo_ddc/BUILD:26:1: output 'bower_components' was not created.
ERROR: /Users/egrimes/Documents/Development/third_party/polymer_dart/todo_ddc/BUILD:26:1: not all outputs were created or valid.

Running bower install from inside bazel-out/local-fastbuild/bin

Please note that,
    polymer-redux#0dc3f6154f depends on polymer#2.0-preview which resolved to polymer#d46694e5d5
    app-layout#dcdef13998, app-route#80d7e272aa, iron-a11y-announcer#a901dfea66, iron-a11y-keys-behavior#6559b9800e, iron-autogrow-textarea#f4c6b40172, iron-behaviors#a27904b516, iron-checked-element-behavior#6257d75137, iron-fit-behavior#7accb98360, iron-flex-layout#ec9a1f91d9, iron-form-element-behavior#e5975d6a19, iron-icon#55fe529584, iron-icons#bfd36eb23e, iron-iconset-svg#1ba09ae80e, iron-image#0d79e38f19, iron-input#9d06d7d7db, iron-list#d707d2100b, iron-location#8afe46bfe1, iron-media-query#6dc49cdc2b, iron-meta#1421651c70, iron-overlay-behavior#b01cc2f5d7, iron-range-behavior#8f9446d38a, iron-resizable-behavior#4c10452634, iron-scroll-target-behavior#301eea2725, iron-selector#e7107b383f, iron-validatable-behavior#325063248a, neon-animation#339624d382, paper-behaviors#f08f03835f, paper-button#5339eebf82, paper-card#2961fb5efb, paper-checkbox#eca71dedaa, paper-dialog#dd145aae58, paper-dialog-behavior#3234c4b2d2, paper-icon-button#ffb9c64bcf, paper-input#1901d421e2, paper-material#ea55d542bc, paper-progress#4288414477, paper-radio-button#685aaf4d2c, paper-ripple#f82228704f, paper-spinner#fc94bdeca3, paper-styles#86e6abcc81, paper-toast#fc5f1e40bc depends on polymer#^2.0.0-rc.1 which resolved to polymer#2.0.0-rc.1
    _polymerize_generated_bower_file_ depends on polymer#2.0.0-rc.1 which resolved to polymer#2.0.0-rc.1
Resort to using polymer#2.0-preview which resolved to polymer#d46694e5d5
Code incompatibilities may occur.

Unable to find a suitable version for webcomponentsjs, please choose one by typing one of the numbers below:
    1) webcomponentsjs#v1.0.0-rc.4 which resolved to 1.0.0-rc.4 and is required by polymer#2.0.0-rc.1
    2) webcomponentsjs#v1.0.0-rc.5 which resolved to 1.0.0-rc.5 and is required by polymer#2.0.0-rc.2, polymer#d46694e5d5

It looks like polymer-redux has it's own reference to polymer. If that's the case, should polymer-redux maybe be moved to it's own package outside of polymer-element so that polymer-element is not tied to polymer-redux's version?

dam0vm3nt commented 7 years ago

A temporary WA is to add resolution conflict in BUILD, forcing to the latest version. I'll add a way for passing this info to polymerize init

dam0vm3nt commented 7 years ago

Ok, in polymerize version 0.5.3 there's the possibility to use an optional bower_resolutions.yaml. I've updated the sample project. BTW: in the meanwhile polymer-2.0.0-rc.2 was released ...