GithubHelp home page GithubHelp logo

Comments (5)

firstor avatar firstor commented on July 26, 2024

Found that this is a webcomponentsjs bug. This bug came after Polymer was upgraded from v2.0.1 to v2.0.2 since Polymer v2.0.2 requires webcomponentsjs v1.0.3.

So before they fix this bug and release a patch or fix for it, degrading webcomponentsjs might be a unique workaround right now:

Related articles:

from polymer-chat.

firstor avatar firstor commented on July 26, 2024

This workaround works fine on FF and Edge but not IE. Got new problem found on IE.

  • Changes in bower.json:
    {
      ...
      "dependencies": {
        "polymer": "Polymer/polymer#2.0.2",
        "paper-input": "PolymerElements/paper-input#2.0.1",
        "paper-button": "PolymerElements/paper-button#2.0.0",
        "paper-dialog": "PolymerElements/paper-dialog#2.0.0",
        ...
        "webcomponentsjs": "webcomponents/webcomponentsjs#1.0.1"  /* <= my attempt to downgrade */
      },
      "resolutions": {
        "webcomponentsjs": "1.0.1" /* <= my attempt to downgrade */
      }
    }
    
  • New problem found on IE 11 (the browser console outputs)
    SCRIPT5007: Unable to get property 'replaceChild' of undefined or null reference
    SCRIPT5022: A custom element with name 'dom-module' has already been defined.
    SCRIPT5022: A custom element with name 'dom-bind' has already been defined.
    SCRIPT5022: A custom element with name 'dom-repeat' has already been defined.
    SCRIPT5022: A custom element with name 'dom-if' has already been defined.
    SCRIPT5022: A custom element with name 'array-selector' has already been defined.
    SCRIPT5022: A custom element with name 'custom-style' has already been defined.
    ...
    

from polymer-chat.

firstor avatar firstor commented on July 26, 2024

The new problem is related with this issue: webcomponents/webcomponentsjs#518

from polymer-chat.

firstor avatar firstor commented on July 26, 2024

The new error A custom element with name 'dom-module' has already been defined. is related with zone.js. The error happened when used zone.js v0.8.14 or v0.8.16. It's been completely fixed with zone.js v0.8.12 and webcomponentsjs v1.0.1.

from polymer-chat.

firstor avatar firstor commented on July 26, 2024

Fixed with PR #27

from polymer-chat.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.