Tech
The import that worked for months and broke on my first deploy
Could not resolve "../styles/Randomfacts.css" from "src/pages/Randomfacts.tsx"
Error: Command "npm run build" exited with 1
This was my first deploy to Vercel, and my first thought was that I'd broken something in that commit.
I opened Randomfacts.tsx and found it importing Randomfacts.css — capital R. Then I checked the actual file sitting in src/styles/, and its name was randomfacts.css, lowercase.
So the import was wrong. Fine. But that raised a much more confusing question: ...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to