flow: Failed to execute 'define' on 'CustomElementRegistry'
With both 14.0.5 and 15.0.0.alpha1 my app won’t load and throws this client exception:
Uncaught DOMException: Failed to execute 'define' on 'CustomElementRegistry': the name "dom-module" has already been used with this registry
at eval (webpack-internal:///../node_modules/@axians/axians-app-layout/node_modules/@polymer/polymer/lib/elements/dom-module.js?babel-target=es6:181:16)
I’ve found https://github.com/Polymer/polymer/issues/5407 but I’m not sure how apply the workaround with Vaadin. Also, removing node_modules and package-lock.json isn’t helping!
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 17 (17 by maintainers)
According to your
package-lock.json,@axians/axians-app-layouthas a dependency on@polymer/polymer 3.3.0. If you don’t use it you should remove it.