EmbeddedEnterprises / ng6-golden-layout

Golden-Layout binding for Angular 6/7/8...
BSD 3-Clause "New" or "Revised" License
60 stars 30 forks source link

MultiWindowService(): uniqueName _gl__PluginURLProvider already taken by function PluginURLProvider() #79

Open trajnisz opened 3 years ago

trajnisz commented 3 years ago

Versions: "golden-layout": "^1.5.9", "ngx-golden-layout": "0.0.37", "@angular/cli": "^9.1.12",

Hi! I have a problem with MultiWindowService. My Angular app structure is like this:

When i open app and navigate to B1 or B2 everything works fine. Problem appears when i open one of them and later navigate to the other one. The error is: Error: MultiWindowService(): uniqueName _gl__PluginURLProvider already taken by function PluginURLProvider() ... at ngx-golden-layout.js:59. It seems like GL wants to initialize something that is already initialized. I don't know if i'm doing something wrong or it is a bug. Maybe app structure is bad but i don't know how to solve this... Has anyone had such a problem?