Missing plugin routes for an Angular app

Hi everyone,

I’ve installed the version v8.1.7 to test an old Angular app of mine and Grafana does not seem to serve the app’s pages under /plugins/my-app-id/ any more.

Is there a way to get those routes working?

Thanks a lot!

Have you checked whether it loaded successfully? Newer versions of Grafana don’t allow loading of unsigned plugins by default. You need to explicitly allow them in that case.

Hi Marcus,

I believe it is successfully loaded.

I have added the plugin ID (gtw-app) to allow_loading_unsigned_plugins in the configuration file.

According to the logs, it seems to be ok?

I can also see the plugin on the /plugins page.

And it is also present in the Grafana configuration object in the DOM.

However when I try to access the app page /plugins/gtw-app/page/home, I get a 404 error.

Hi Marcus,

Sorry to bother you with this issue but should I assume that those routes are no longer supported in Grafana 8?

I completely understand that Grafana can not support Angular forever but do you have any information on when Grafana will drop Angular plugins support?

Thanks a lot for your help.

Mickaël

I’m not sure but also maybe check whether it’s this issue you’re experiencing:

We don’t have any plans on deprecating Angular plugins at this point. I suspect that when it does happen, it’ll happen in a major release (which is released during every summer).

Hi Marcus,

My apologies for the super late reply.

I didn’t get a change to investigate but I chose to wrap the angular code into a React component using the AngularComponent interface.

The app is now using the new routing format that is /a/plugin-id.

Thank you very much for your help.

1 Like

Glad to hear you got it working!

For your information, since my last reply, we now have a plan to deprecate AngularJS.

You can read more here:

2 Likes

Thanks,

I really appreciate you came back to me regarding this.

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.