How to upgrade to Polymer and PaperElements 1.0 using pubspec.yaml

I found a migration guide ( https://www.polymer-project.org/1.0/docs/migration.html ). My Dart project is not using chat, but pubspec.yaml, and when I changed the dependency version for PaperElements I get the message:paper_elements has no versions that match >=1.0.0

environment:
 sdk: '>=0.8.10+6 <2.0.0'
dependencies:
 browser: '>=0.10.0+2'
 code_transformers: any
 core_elements: '>=0.6.0'
 dnd: any
 logging: '>=0.9.3'
 paper_elements: '>=1.0.0'
 polymer: any
 polymer_intl: any
 vector_math: any
transformers:
- polymer:
  entry_points:
    web/index.html
  inline_stylesheets:
    packages/polymer/src/build/log_injector.css: false
- $dart2js:
minify: true

      

How to update?

+3


source to share


1 answer


Update

https://pub.dartlang.org/packages/polymer_elements

(ignore obsolete comment in readme)



original

There are no elements for Dart yet. This is a work in progress and before they are published it is not possible to use them the way you did before. You can use Polymer.js elements in the meantime, of course, but then you have to use gazebo and dart-js-interop.

+4


source







All Articles