Error "Cannot create a toolbar button at this time" in plugin

I want to make a plugin that has a toolbar button, that when clicked opens a widget. I’m using boilerplate code that’s based of Roact to make this plugin.

However when reloading the plugin I’m running into the error “Cannot create a toolbar button at this time”, and the button doesn’t get added to the toolbar. Is there a way to prevent this from happening?

I’ve tried modifying the boilerplate code however it hasn’t changed the result.

There’s a plugin file attached below.
ReproPlugin.rbxmx (428.2 KB)

I still haven’t found a way to resolve this issue, just for some more info this doesn’t occur when removing the code that groups the toolbar buttons under a single group