New user here, and I found out the hard way there’s a misleading statement in the tutorial New to JAMstack? How to make a site from A to Z.
It says
Another conflicting file is
src/css/main.css
— delete this file too.
Unfortunately, that leads to an error, because main.css is imported in index.js:
ERROR in ./src/index.js
Module not found: Error: Can’t resolve ‘./css/main.css’ in ‘/Users/gkosan/Desktop/netlify_a-to-z/victor-hugo/src’
@ ./src/index.js 2:0-24
I was able to fix this error by commenting out the include line from src/index.js.
Or probably I could have deleted the contents of src/css/main.css without deleting the actual file.
I wanted to share this since I spent a frustrating amount of time debugging the issue, which I only discovered during the initial deployment. I know its a simple error, but I hope this helps other newbies like myself.