Skip to content
This repository was archived by the owner on Mar 15, 2022. It is now read-only.
This repository was 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

Description

@allthesignals

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

Activity

  1. mooman commented on Jul 27, 2018

    @mooman
    Member

    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 join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions