paper-input icon indicating copy to clipboard operation
paper-input copied to clipboard

Not working with Polymer Starter Kit

Open chwzr opened this issue 7 years ago • 2 comments

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

chwzr avatar Oct 27 '18 15:10 chwzr

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

  • rm-rf node_modules package-lock.json
  • npm i

fagnercarvalho avatar Nov 15 '18 04:11 fagnercarvalho

exactly this is solving the issue.

chwzr avatar Nov 23 '18 03:11 chwzr