Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working with Polymer Starter Kit #678

Open
chwzr opened this issue Oct 27, 2018 · 2 comments
Open

Not working with Polymer Starter Kit #678

chwzr opened this issue Oct 27, 2018 · 2 comments

Comments

@chwzr
Copy link

chwzr commented Oct 27, 2018

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
Copy link

fagnercarvalho commented Nov 15, 2018

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

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

@chwzr
Copy link
Author

chwzr commented Nov 23, 2018

exactly this is solving the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants