3

After install

npm i @polymer/paper-tabs

and import :

import '@polymer/paper-tabs/paper-tab.js';

import '@polymer/paper-tabs/paper-tabs.js';

Getting error on run :

polymer-fn.js:43 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/paper-tabs/node_modules/@polymer/paper-ripple/paper-ripple.js:314:1

3
  • did not really use Polymer 3, but just based on the error message.. I got a very similar error when the same component was included twice with different relative paths, even if they resolved in the end to the same absolute path..
    – mishu
    May 25, 2018 at 6:48
  • Are you using polymer-cli? If yes, have you tried building the project with polymer build?
    – Umbo
    Jun 1, 2018 at 12:37
  • Yes using polymer-cli and tried build with polymer build and npm run build. Jun 5, 2018 at 5:37

1 Answer 1

1

Inside your project directory, try to:

-install paper-tabs, npm i --save @polymer/paper-tabs

-remove directory node_modules

-remove file packege-lock.json

-reinstall dependencies via npm, npm install

-in my-app.js (see starter-kit) import paper-tabs.js import '@polymer/paper-tabs/paper-tabs.js';

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.