Cannot find file problem

I have seen a few post regarding this issue all of them with different problems, in my case my site build fine using both npm start and npm run build but when Netlify tries to deploy I get the following error:

Cannot find file ‘./components/UsersContainer/UsersContainer.js’ in ‘./src’.

What do I need to look for to make my site comply with Netlify deployment rules?

Any help will be much appreciated


Hey there, thanks for reaching out.

What you are describing sounds a bit like a an issue with case sensitivity on our system.

Can you give this a read through and let us know if that fixes the issue?

You can change your git config
Globaly > git config --global core.ignorecase false
Or (if you are created one repository)
Go to folder in your project “.git/config” and change or add this configuration >
ignorecase = false

1 Like