Skip to content
This repository has been archived by the owner on Mar 15, 2022. It is now read-only.

Failed to execute 'define' on 'CustomElementRegistry': this name has already been used with this registry #2

Open
allthesignals opened this issue Jul 27, 2018 · 1 comment

Comments

@allthesignals
Copy link

Not sure what's going on here, followed instructions according to this thread https://github.com/Polymer/polymer-starter-kit/issues/1123#issuecomment-408453390. Could this be related to the web component?

bundle.js:4863 Uncaught (in promise) DOMException: Failed to execute 'define' on 'CustomElementRegistry': this name has already been used with this registry
    at Object.<anonymous> (http://127.0.0.1:8081/node_modules/@ggcity/leaflet-map/dist/bundle.js:4863:43)
    at t (http://127.0.0.1:8081/node_modules/@ggcity/leaflet-map/dist/bundle.js:9:17)
    at Object.<anonymous> (http://127.0.0.1:8081/node_modules/@ggcity/leaflet-map/dist/bundle.js:4489:11)
    at t (http://127.0.0.1:8081/node_modules/@ggcity/leaflet-map/dist/bundle.js:9:17)
    at Object.<anonymous> (http://127.0.0.1:8081/node_modules/@ggcity/leaflet-map/dist/bundle.js:4412:11)
    at t (http://127.0.0.1:8081/node_modules/@ggcity/leaflet-map/dist/bundle.js:9:17)
    at Object.<anonymous> (http://127.0.0.1:8081/node_modules/@ggcity/leaflet-map/dist/bundle.js:4321:11)
    at t (http://127.0.0.1:8081/node_modules/@ggcity/leaflet-map/dist/bundle.js:9:17)
    at http://127.0.0.1:8081/node_modules/@ggcity/leaflet-map/dist/bundle.js:28:16
    at http://127.0.0.1:8081/node_modules/@ggcity/leaflet-map/dist/bundle.js:29:3
@mooman
Copy link
Member

mooman commented Jul 27, 2018

This library was written with Preview version of Polymer 3 and hasn't been tested outside that ecosystem, unfortunately. I'm not too sure of your environment, but I'm betting it's probably that? Especially, the bundle.js was compiled with Polymer 3 preview...

I would try to compile it with your project with the newer version of Polymer.

There are plans in place to upgrade this to the stable version 3 or exploring lit-element.

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

No branches or pull requests

2 participants