Multiple Custom element developed in angular element

109 views
Skip to first unread message

f-end

unread,
Jan 9, 2019, 6:03:57 AM1/9/19
to Angular and AngularJS discussion

Hi,

I developed 2 custom elements in different Angular element projects and when I try to use them in single html I get error "Failed to execute 'define' on 'CustomElementRegistry': this name has already been used with this registry"

I know its something related to loading libs twice packaged in both custom elements. How to resolve this?

Thanks

Tito

unread,
Jan 9, 2019, 7:02:40 AM1/9/19
to Angular and AngularJS discussion
What if you deleted package-lock.json
Delete node_modules and do

Npm ci

Read a few places this might resolve issue

f-end

unread,
Jan 10, 2019, 7:53:05 AM1/10/19
to Angular and AngularJS discussion
No this dosn't help :(

kamal...@gmail.com

unread,
Jan 31, 2019, 12:42:55 PM1/31/19
to Angular and AngularJS discussion
Reply all
Reply to author
Forward
0 new messages