Recently, I created a blog using nextJS and loaded markdown files as posts on the main page. To style my website, I used css modules along with a global.css file. However, I've encountered an issue where some properties from the global.css file are not being applied, even though everything else seems to be functioning properly. Surprisingly, this problem persists across all browsers.
If you take a look at this demo showcasing the bug, you will see that in the developer tools, certain properties such as color are not being applied while only the padding is working as expected.
Following standard procedures, I am loading the global css file by the book, as shown in this image illustrating how I load the global css file.
Despite my efforts, I have noticed two errors which seem to be unrelated:
You can see these errors in the console by checking out this devtools console error screenshot:
: This error about "projection.png" is puzzling because I do not use any image with that name. Could this possibly be related to threeJS?Failed to load resource: the server responded with a status of 404 (Not Found) - projection.png:1
Warning: Received
true
: This warning seems to originate from feather-icons.for a non-boolean attribute 'con'.
In an effort to resolve the styling issues, I attempted to apply styles using the global css file within NextJS but unfortunately, they did not get applied correctly to the elements as expected.