Polymer DomModule already defined

前端 未结 1 1691
甜味超标
甜味超标 2021-01-19 07:06

I\'m building a website, where I\'d use different polymer components, some of them multiple times.

My problem is that the compiled code contains a

         


        
相关标签:
1条回答
  • 2021-01-19 07:48

    If you include polymer using two different paths in two different components, both of them gets executed and both tries to define dom-module, dom-if etc.

    So check the networks panel for identical file names but different paths.

    Example:

    /bower_components/webcomponentsjs/webcomponents-loader.js
    and
    /components/webcomponentsjs/webcomponents-loader.js
    
    0 讨论(0)
提交回复
热议问题