Polymer / tools

Polymer Tools Monorepo
BSD 3-Clause "New" or "Revised" License
430 stars 200 forks source link

A lot of exceptions when used with additional import #1846

Open eximius313 opened 8 years ago

eximius313 commented 8 years ago

I have a main HTML template which looks like this:

<html>
<head lang="en">
    <!-- some more scripts here -->
<script type="text/javascript" src="/assets/components/webcomponentsjs/webcomponents-lite.min.js"></script>
    <link rel="import" href="/assets/components/some-component/some-component.html">
    <link rel="import" href="/assets/components/some-component/some-component.html">
    <link rel="import" href="/assets/components/some-component/some-component.html">
    <link rel="import" href="/assets/components/some-component/some-component.html">
    <!-- more components here -->
</head>
<body>
    <!-- here goes the content from particular pages -->
</body>
</html>

Because I can not vulcanize directly this file (as it is part of template language) I have moved all the component imports into the single file (all-imports.html):

    <link rel="import" href="/assets/components/some-component/some-component.html">
    <link rel="import" href="/assets/components/some-component/some-component.html">
    <link rel="import" href="/assets/components/some-component/some-component.html">
    <link rel="import" href="/assets/components/some-component/some-component.html">

so now head of my main template looks like this:

<head lang="en">
    <!-- some more scripts here -->
<script type="text/javascript" src="/assets/components/webcomponentsjs/webcomponents-lite.min.js"></script>
    <link rel="import" href="/assets/components/all-imports/all-imports.html">
</head>

When I vulcanize all-imports.html it works well until I add a single component outside the all-imports.html:

<head lang="en">
    <!-- some more scripts here -->
<script type="text/javascript" src="/assets/components/webcomponentsjs/webcomponents-lite.min.js"></script>
    <link rel="import" href="/assets/components/all-imports/all-imports.html">
    <link rel="import" href="/assets/components/other-component/other-component.html">
</head>

Page doesn't load and I get following exceptions: image

garlicnation commented 8 years ago

@eximius313 Please provide a reduced example that we can use to replicate this.

eximius313 commented 8 years ago

Sure. Deploy this simple file. Test.zip

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.