tools: Vulcanize generated file generates lots of errors

I am trying to get vulcanize to work but am having very little luck. I have a bunch of components:

    <link rel="import" href="./components/core-toolbar/core-toolbar.html">
    <link rel="import" href="./components/core-pages/core-pages.html">
    <link rel="import" href="./components/core-menu/core-menu.html">
    <link rel="import" href="./components/core-menu/core-submenu.html">
    <link rel="import" href="./components/core-item/core-item.html">
    <link rel="import" href="./components/core-scaffold/core-scaffold.html">
    <link rel="import" href="./components/core-icons/core-icons.html">
    <link rel="import" href="./components/core-icons/communication-icons.html">
    <link rel="import" href="./components/core-icon-button/core-icon-button.html">
    <link rel="import" href="./components/core-animation/core-animation.html">
    <link rel="import" href="./components/core-tooltip/core-tooltip.html">
    <link rel="import" href="./components/core-media-query/core-media-query.html">
    <link rel="import" href="./components/paper-tabs/paper-tabs.html">
    <link rel="import" href="./elements/ucd-aggiefeed-validate-auth.html">
    <link rel="import" href="./elements/ucd-aggiefeed-source-filter.html">
    <link rel="import" href="./elements/ucd-aggiefeed-events.html">

and am using: vulcanize index.html

… to generate vulcanized.html.

When I then use vulcanized.html, i am getting the following errors:

Uncaught TypeError: flags.log.split is not a function(anonymous function) @ webcomponents.js:30(anonymous function) @ webcomponents.js:52
polymer.js:6384 Uncaught HierarchyRequestError: Failed to execute 'appendChild' on 'Node': Only one element on document allowed.(anonymous function) @ polymer.js:6384(anonymous function) @ polymer.js:6389(anonymous function) @ polymer.js:7507
core-meta.html:68 Uncaught TypeError: Polymer is not a function(anonymous function) @ core-meta.html:68(anonymous function) @ core-meta.html:142
core-iconset.html:67 Uncaught TypeError: Polymer is not a function(anonymous function) @ core-iconset.html:67
core-iconset-svg.html:56 Uncaught TypeError: Polymer is not a function(anonymous function) @ core-iconset-svg.html:56
core-icon.html:70 Uncaught TypeError: Polymer is not a function(anonymous function) @ core-icon.html:70(anonymous function) @ core-icon.html:200
vulcanized.html:528 Uncaught TypeError: Polymer.mixin is not a function(anonymous function) @ vulcanized.html:528(anonymous function) @ vulcanized.html:664
vulcanized.html:1138 Uncaught TypeError: Polymer is not a function(anonymous function) @ vulcanized.html:1138(anonymous function) @ vulcanized.html:1199
vulcanized.html:1206 Uncaught TypeError: Polymer is not a function(anonymous function) @ vulcanized.html:1206
vulcanized.html:1288 Uncaught TypeError: Polymer is not a function(anonymous function) @ vulcanized.html:1288
vulcanized.html:1796 Uncaught TypeError: Polymer is not a function(anonymous function) @ vulcanized.html:1796
vulcanized.html:2004 Uncaught TypeError: Polymer is not a function(anonymous function) @ vulcanized.html:2004(anonymous function) @ vulcanized.html:2046
vulcanized.html:2079 Uncaught TypeError: Polymer is not a function(anonymous function) @ vulcanized.html:2079
vulcanized.html:2089 Uncaught TypeError: Polymer is not a function(anonymous function) @ vulcanized.html:2089(anonymous function) @ vulcanized.html:2163
vulcanized.html:2171 Uncaught TypeError: Polymer is not a function(anonymous function) @ vulcanized.html:2171
vulcanized.html:2401 Uncaught TypeError: Polymer is not a function(anonymous function) @ vulcanized.html:2401(anonymous function) @ vulcanized.html:2531
vulcanized.html:2591 Uncaught TypeError: Polymer is not a function(anonymous function) @ vulcanized.html:2591
vulcanized.html:2630 Uncaught TypeError: Polymer is not a function(anonymous function) @ vulcanized.html:2630
vulcanized.html:2931 Uncaught TypeError: Polymer is not a function(anonymous function) @ vulcanized.html:2931
vulcanized.html:2986 Uncaught TypeError: Polymer is not a function(anonymous function) @ vulcanized.html:2986
vulcanized.html:3212 Uncaught TypeError: Polymer is not a function(anonymous function) @ vulcanized.html:3212
vulcanized.html:3629 Uncaught TypeError: Polymer is not a function(anonymous function) @ vulcanized.html:3629
vulcanized.html:3817 Uncaught TypeError: Polymer is not a function(anonymous function) @ vulcanized.html:3817
vulcanized.html:4258 Uncaught TypeError: Polymer is not a function(anonymous function) @ vulcanized.html:4258
vulcanized.html:4359 Uncaught TypeError: Polymer is not a function(anonymous function) @ vulcanized.html:4359
vulcanized.html:4534 Uncaught TypeError: Polymer is not a function(anonymous function) @ vulcanized.html:4534(anonymous function) @ vulcanized.html:4914
vulcanized.html:4931 Uncaught TypeError: Polymer is not a function(anonymous function) @ vulcanized.html:4931
vulcanized.html:4966 Uncaught TypeError: Polymer is not a function(anonymous function) @ vulcanized.html:4966
polymer-mixin.js:7 Uncaught TypeError: Polymer.mixin is not a functionPolymer.mixin2 @ polymer-mixin.js:7(anonymous function) @ vulcanized.html:5225(anonymous function) @ vulcanized.html:5228
vulcanized.html:5445 Uncaught TypeError: Polymer is not a function(anonymous function) @ vulcanized.html:5445(anonymous function) @ vulcanized.html:5635
polymer-mixin.js:7 Uncaught TypeError: Polymer.mixin is not a functionPolymer.mixin2 @ polymer-mixin.js:7(anonymous function) @ vulcanized.html:5773(anonymous function) @ vulcanized.html:5776
vulcanized.html:5821 Uncaught TypeError: Polymer is not a function(anonymous function) @ vulcanized.html:5821
vulcanized.html:5934 Uncaught TypeError: Polymer is not a function(anonymous function) @ vulcanized.html:5934
vulcanized.html:6074 Uncaught TypeError: Polymer.mixin is not a function(anonymous function) @ vulcanized.html:6074
vulcanized.html:6319 Uncaught TypeError: Polymer is not a function(anonymous function) @ vulcanized.html:6319
vulcanized.html:6410 Uncaught TypeError: Polymer is not a function(anonymous function) @ vulcanized.html:6410
vulcanized.html:6821 Uncaught TypeError: Polymer is not a function(anonymous function) @ vulcanized.html:6821
vulcanized.html:7035 Uncaught TypeError: Polymer.mixin is not a function(anonymous function) @ vulcanized.html:7035(anonymous function) @ vulcanized.html:8158
vulcanized.html:8174 Uncaught TypeError: Polymer is not a function(anonymous function) @ vulcanized.html:8174(anonymous function) @ vulcanized.html:8235
vulcanized.html:8368 Uncaught TypeError: Polymer is not a function(anonymous function) @ vulcanized.html:8368
vulcanized.html:8618 Uncaught TypeError: Polymer is not a function(anonymous function) @ vulcanized.html:8618
vulcanized.html:8647 Uncaught TypeError: Polymer is not a function(anonymous function) @ vulcanized.html:8647
vulcanized.html:8716 Uncaught TypeError: Polymer is not a function(anonymous function) @ vulcanized.html:8716
vulcanized.html:8743 Uncaught TypeError: Polymer is not a function(anonymous function) @ vulcanized.html:8743(anonymous function) @ vulcanized.html:8823
vulcanized.html:8830 Uncaught TypeError: Polymer.mixin is not a function(anonymous function) @ vulcanized.html:8830(anonymous function) @ vulcanized.html:9484
vulcanized.html:9539 Uncaught TypeError: Polymer is not a function(anonymous function) @ vulcanized.html:9539
vulcanized.html:9754 Uncaught TypeError: Polymer is not a function(anonymous function) @ vulcanized.html:9754(anonymous function) @ vulcanized.html:9931
vulcanized.html:9983 Uncaught TypeError: Polymer is not a function(anonymous function) @ vulcanized.html:9983
vulcanized.html:10214 Uncaught TypeError: Polymer is not a function(anonymous function) @ vulcanized.html:10214

What am I doing wrong?

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 22 (3 by maintainers)

Most upvoted comments

@tigerhawkvok You might have solved this by now - but that issue is due to polymer.html being included more than once. You’re including it at the top of your script, and then some/all of the components will be including it too.

Because Vulcanize simply inline’s every include, polymer.html get’s included more than once and therefore errors. You can exclude it from the vulcanize process, and keep it as an include.