From debugging and looking at the commit history the issue you’re facing is because the publicPath.ts file is incorrect. That is not the pluginId of your plugin (plugin.json). Did you edit this file for some reason?
I tried to reproduce it by cloning the repo, checked out v4.3.2 tag, and then running npx @grafana/create-plugin@latest update. Then doing a docker compose up but the icons load without issue:
No, I didn’t make any edits to that file, in fact, it looks like the file was just created in that commit. I think there is some weird behavior going on since my plugin title (psychart) doesn’t match the ID (psychrometric). That’s something that diverged early on in development and would be difficult to fix now. I’m not even sure it’s possible to change the plugin ID now that it is published.
You’re welcome. I’m 100% sure it’s why the icons don’t load. Look at the url paths in chrome network inspector and you should see that the broken images have an incorrect plugin-id in their path. When I opened one in a new chrome tab the backend reported the plugin couldn’t be found.
That’s slightly worrying as it would suggest there is a bug in create-plugin. However I cannot reproduce it using your repo as a test case. I checked out the commit prior to the create-plugin update commit in your repo and then ran npx @grafana/create-plugin@latest update and the publicPath.ts file was generated correctly. create-plugin doesn’t use the plugin title for generating this file - it always comes from the id found in the plugin.json file.
I verified it using the docker-compose.yml developement env in the repo. I’ll take a look at your other issue. I’d imagine it’s something related to the structure of the plugins folder you’re passing to the grafana server.
@ventura did you bootstrap the plugin using the create-plugin tool or did you use another plugin as a base to develop yours? Or perhaps you started your plugin with a name and later on you renamed it to something else?
Instead of update, I used create-plugin in a clean, empty directory and transferred my src files. That would likely explain the psychart-panel instead of psychrometric-panel.
Thanks again for your help on this! I was able to resolve my other issue (unrelated to this one) and was able to test this in development, and it works perfectly.