Gatsby Netlify CMS manulal initialisation shadowing configuration

Hi, I have a question. I’ve been using this theme that has Netlify CMS manual initialisation and allows to shadow the configuration file in order to extend the collection array on a site that uses this theme. I added a SiteMetadata component to the same theme that has a gatsby . I do export this component along with the configration function. When shadowing the configuration I get this error for the component when compiling:
Module parse failed: Unexpected token. You may need an appropriate loader to handle this file type.
I guess it has to do with module resolution but I’m not sure how to solve the problem. Do you have any suggestion?

Hi @LuigiClaudio, can you share the repo?
I would try and explicitly importing that component styles in the cms.js file.