I have been creating a site on my IDE and it has been working perfectly. But I ran into problems when deploying to Netlify. After changing all my file names to lowercase, now my 'header.css' file is not importing into header.js. I have checked the file path and it is correct. Can anyone please help me?
https://github.com/genesis16/alphaomega
- changed file names to lowercase.
- changed npm versions
- installed css loader
- changed file path to './components/header.css'
import './header.css' import '..components/header.css'
warning in ./src/components/Card.js ⠀ There are multiple modules with names that only differ in casing. This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
I have saved the file as card.js
to pass Netlify's casing requirements. But it is still showing in my error log with capital Card.js
.
I expected to run Gatsby develop and have my site load up properly with the header.css
file imported.