Uxp entrypoints.setup loads same panel always

Hi,

I cannot get multiple panels working in InDesign. Same code works fine in Photoshop.

Consider this example
index.js

const { entrypoints } = require("uxp");

entrypoints.setup({
	panels: {
		test1: {
	      	show: () => {	
	      		console.log('show test1')
	  		
	  		},
	  		create: () =>	{	
	      		console.log('create test1')
	  		
	  		},
	  	},
	  	test2: {
	      	show: () =>  {	
	      		console.log('show test2')
	  		
	  		},
	  		create: () =>	{	
	      		console.log('create test2')
	  		
	  		},
	  	}	
	  }	
})

index.html

<!DOCTYPE html>
<html>
<head>
  <script src="index.js"></script>    
</head>
<body>
  
</body>
</html>

manifest.json

{
    "id": "sadsad",
    "name": "FOO",
    "version": "0.0.3",
    "main": "index.html",
    "entrypoints": [
        
        {
            "description": "asasee wefa",
            "type": "panel",
            "id": "test1",
            "label":"test panel 1"
        },
        {
            "description": "adsadsa asd as ",
            "type": "panel",
            "id": "test2",
            "label":"test panel 2"
        }
    ]
}

Shows this in the console:

create test1
show test1
create test1
show test1

Seems to me like a bug in the InDesign UXP implementation or am I doing something wrong here?

InDesign version 19.4
UXP Developer tool 2.0.1

I think It’s a bug on InDesign.
other developers mentioned same problem in the past as well.
selecting panels from Plugin panel, it works properly, but selecting from top of the menu, this not correctly works at all.

https://forums.creativeclouddeveloper.com/t/multiple-panels-without-web-components/7588/8

1 Like

You are right, it works correctly using the plugins panel.

We have a plugin with 3 panels but this bug is preventing us from releasing it. Does anybody know if this bug is known at Adobe? Do they have a public issue tracker?

1 Like

I have the same issue. But I recognized that as soon as opening the panel an additional element is created - which is empty: