Dependencies for Hybrid Element and not able to upgrade to class-based elements

46 views
Skip to first unread message

Laurent Besson

unread,
Apr 25, 2017, 1:08:15 PM4/25/17
to Polymer
Hi,

I would like to upgrade my custom component to class-based elements on an hybrid poject.
My project run actually with Polymer 1.7.1 and I would like to switch to a Hybrid project having Polymer 1.7.1 and have Polymer 2.0.0-rc.7 in parallel. I followed this guide https://www.polymer-project.org/2.0/docs/devguide/hybrid-elements.

I tried to update too update my following  dependencies:

"paper-button": "PolymerElements/paper-button#2.0-preview",
"paper-input": "PolymerElements/paper-input#2.0-preview",
"paper-icon-button": "PolymerElements/paper-icon-button#2.0-preview",
"paper-card": "PolymerElements/paper-card#2.0-preview",
"paper-toggle-button": "PolymerElements/paper-toggle-button#2.0-preview",
"paper-tooltip": "PolymerElements/paper-tooltip#2.0-preview",
"paper-material": "PolymerElements/paper-material#2.0-preview",
"paper-spinner": "PolymerElements/paper-spinner#2.0-preview",
"paper-item": "PolymerElements/paper-item#2.0-preview",
"paper-dialog": "PolymerElements/paper-dialog#2.0-preview",
"paper-checkbox": "PolymerElements/paper-checkbox#2.0-preview",
"paper-toolbar": "PolymerElements/paper-toolbar#2.0-preview".

A the end I have polymer 1.9.1 in my bower folder instead of 2.0.0 rc and so I do not have
polymer.element.html which is required for class-based elements.
class MyElement extends Polymer.Element 

Do you have a explanation or a solution for this issue?

Thanks.

Laurent




abhishek gupta

unread,
May 1, 2017, 5:01:01 AM5/1/17
to Polymer
Try using github urls instead element name (
https://github.com/PolymerElements/paper-toggle-button.git#2.0-preview). As tags for  2.0-preview are not yet created, bower might not be able to find the required tag/branch.

Arthur Evans

unread,
May 2, 2017, 7:12:55 PM5/2/17
to Laurent Besson, Polymer
One thing you'll need to do (that's missing from the current version of the guide) is remove your existing bower_components folder to make sure it doesn't try to resolve packages against stuff you already have installed.

Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/aacbeea7-6a8e-4b84-985c-daa13aa98d0b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Laurent Besson

unread,
May 2, 2017, 9:31:45 PM5/2/17
to Arthur Evans, Polymer

Ok, will do that.  Thanks Arthur


To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages