PolymerElements / paper-input

A Material Design text field
https://www.webcomponents.org/element/PolymerElements/paper-input
130 stars 162 forks source link

Not working with Polymer Starter Kit #678

Open chwzr opened 5 years ago

chwzr commented 5 years ago

Description

I've installed it on a blank polymer 3 starter kit. got following error: Failed to execute 'define' on 'CustomElementRegistry': this name has already been used with this registry

Is this bc there is a separate @polymer node_module installed in subfolder?

Steps to reproduce

  1. polymer init --> polymer starter kit 3

  2. npm install @polymer/paper-input --save

  3. import like in the docs..

  4. polymer serve

  5. see error in console:

Uncaught (in promise) DOMException: Failed to execute 'define' on 'CustomElementRegistry': this name has already been used with this registry
    at Polymer (http://localhost:8081/node_modules/@polymer/polymer/lib/legacy/polymer-fn.js:43:18)
    at http://localhost:8081/node_modules/@polymer/iron-input/node_modules/@polymer/iron-meta/iron-meta.js:141:1
fagnercarvalho commented 5 years ago

To anyone that got here I resolved this issue by running:

chwzr commented 5 years ago

exactly this is solving the issue.