Recently, I encountered an issue while working on a Next.js project involving the addition of an external script that uses vanilla JavaScript to dynamically create nodes. Despite importing global CSS at the top of my _app.js file, I noticed that the styles were not being applied to these dynamically created elements. I attempted various methods of importing the CSS without success, leading me to believe that modifications within the external script would be necessary to include the styling there.
Could someone shed light on why the imported CSS is not affecting these nodes and provide guidance on how to properly import/configure them in Next.js?
Thank you for any assistance!
P.S: The script functions properly and is imported correctly; I also tried importing the CSS in different ways with no success.