7 months ago
New to coding and first time trying to deploy and host a project.
In my project I import an image in as .png but I notice in the build logs it states here:
'/app/app/images/KanBanView.PNG',
'/app/app/images/BarConversionRate View.PNG',
'/app/app/images/UpcomingTasks.PNG',
'/app/app/images/BarStatsView.PNG',Does this mismatch actually affect the build? I have also attached a screenshot proving that is it not all caps, and they are in fact lowercase. If I try to match it somehow by using .PNG in my imports, it does not let me. This all works on localhost, but get issues trying to deploy on Railway.
16 Replies
7 months ago
do the caps appear on your GitHub repo? I had issues like this before where my github repo and my local repo had mismatched casings which caused the biggest headache the world has ever seen
Huh. I have 5 images. In github, 4 appear as .PNG and only one appears as .png
I have closed and re-opened vscode, gone into my actual project folder in file explorer as well and both verify that it says .png
git status says there's nothing to commit, so how do I make it update to .png?
7 months ago
its cause github by default ignores casings as far as I know
so if you have JohnDoe.Txt on github but locally you have johndoe.txt github will assume its the same file (asn, wont delete the old one and wont create a new one like it normally would in this case)
you can disable it via: git config core.ignorecase false
or delete the files on github and reupload them with the correct casing
Oh. Thanks! Do you know how I can delete them on git? Sorry I'm new to all of this
7 months ago
no worries, and yea just go to your repo on github, then find the file you want to delete (click on it) then click on the hamburger menu and click Delete file
When I delete it, if I go back out it reappears and I can still access it
7 months ago
did you refresh the tab?
7 months ago
i think the easiest solution here would be to just enable case sensitivity
7 months ago
No problem, happy to help
7 months ago
!s
Status changed to Solved dev • 7 months ago