Error running strapi start command: ‘Bootstrap function in admin failed’

I had made a custom component under the category name icon. The Strapi .gitignore file has a default entry for Icon under OS X but it is ignoring my component inside the components/icon directly. I think there should be a change to not target directories named icon in other directories in the gitignore file, or at least have a restriction to not allow you to create a component with the category name icon. I had a content type depending on this component.

This explains why it was working locally but not on the server, because the file never got committed when the components were created and pushed.

My solution was to move the component into another directory not named icon and it fixed the issue.