Using hybrid components under Polymer 2.0.

7 views
Skip to first unread message

taras....@gmail.com

unread,
Sep 26, 2018, 4:11:59 AM9/26/18
to Polymer
я
Hello guys,
I woult migrate my app from Polymer 1.9.1 version to Polymer 2.0 version.

Currently I updated the template of components to hybrid mode.
I did such types of changes:
1)replace content tag with slot tag,
2)replace ::content with ::slotted
3)wrap styles with template tag

But my hybrid elements still have references to components under polymer 1.9.1.

So when I try to use these hybrid components, I recive error:
polymer-micro.html:449 Uncaught DOMException: Failed to execute 'registerElement' on 'Document': Registration failed for type 'dom-module'. A type with that name is already registered.



When I am replacing references to Polymer 1.9.1 with Polymer 2.0 I am also getting the error.

So, could you please advice, what should I do for running my hybrid component under Polymer 2.0?
Is it possible to leave the references to Polymer 1.9.1? Or is it not possible to run such components under Polymer 2.0?

Should I do some other actions for migration to Polymer 2.0?

Thanks.
Reply all
Reply to author
Forward
0 new messages