We have a custom perspective module adding several components. These all work fine. But when we start/restart the Ignition gateway, we get a rush of warnings from
Perspective.ProjectConfig
With message
Unable to find registered component for id="..."
Where ... is the name of the different react components from our module. Same react component may be listed multiple times. We get ~5100 of these entries (~51 pages with 100 entries per page).
This error message shows up whether module is installed or not. And from the time stamps, the first warning comes at e.g. 07:50:35, the last warning at 07:50:36, and then right afterwards at same timestamp, we see the module manager starting up our module, and registering the components. So it seems to me like Ignition is trying to use our custom components before the module has finished loading.
Does anyone know how to resolve this, so that we can avoid creating bloat in our logs?
We are registering components in the startup() method, and removing components in shutdown() method of designer.BasicComponentsDesignerHook.java and gateway.BasicComponentsGatewayHook.java.
But if we did not do this, would the components be available at all in either designer or gateway? The components are there, and work fine. It just seems like Ignition tries to use them before they are loaded.
Everything looks fine to me, maybe someone else can notice something.
Are you 100% sure that the component IDs showing in the logs are correct (i.e. they exactly match the ids configured in your module, and aren’t ids for non-existent components)?
The reason I ask is because I’ve done this to myself when changing the ID’s of components that are still in development; if you have old views in a project that still reference the original component ID, you’ll get component not found errors.