Ravenstine / ember-custom-elements

The easiest way to render parts of your Ember app using custom elements.
MIT License
15 stars 4 forks source link

Muliples custom elements (full ember apps) have conflict inside host app #18

Open billyjov opened 3 years ago

billyjov commented 3 years ago

i have an application as a parent app.

I load two different apps as custom elements with lazy loading.

The following problems occur:

With the normal build (not the prod build)

2021-06-30 10_26_53-ubuntu-20-lts-2  wird ausgeführt  - Oracle VM VirtualBox

With the prod build

when I build my custom elements with the production build, only one element works and the other does not.

Are there any conflicts?

PS. i'm using shadow DOM

2021-06-30 10_44_14-EmberApp 2021-06-30 10_44_39-localhost_4200_landscapes

billyjov commented 3 years ago

@Ravenstine Any advice on this ? I gave you access to the repository

billyjov commented 3 years ago

I found that there is a problem with multiple instances of Ember on the same page