How do you import a custom polymer element from within a custom element?

Issue

I want to create a custom polymer element that incorporates custom elements from a third party library. My customelement.html file has this in the head section

<head>
    <title>orderlist</title>
    <link rel="import" href="packages/widget/components/accordion.html">
    <link rel="import" href="packages/widget/components/collapse.html">
</head>

All is well, the editor can find the referenced components.

At runtime, however, Dartium complains that the components can’t be found:

http://(mylocalhost)/birdweb_web/web/packages/birdweb/packages/widget/components/accordion.html 404 (Not Found) 

From the URL it appears that Dart wants to find the custom elements in my application’s library instead of in the top level packages directory.

How do I use third party polymer elements in my custom element?

Solution

That is a known bug (filed) a few days ago
Issue 13684

Answered By – Günter Zöchbauer

Answer Checked By – Senaida (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *