User churn due to:
Module not found: Can't resolve 'next/Head' in '/zeit/628124c9/pages'
Import next/Head on a case insensitive filesystem and it will work.
Deploy to a sensitive one, it'll fail to build.
Next.js should never of allowed the build in the first place and suggested the user fix the case sensitivity issue.
this PR won't fix this exact case, but it seems related.
馃 This may be solvable with with a linter as well. Or with case-sensitive-paths-webpack-plugin
Switching this from a bug to feature request due to your PR landing @Janpot 馃檹
I was having the same kind of error:
Module not found: Can't resolve '../../../components/Trends' in '/vercel/3e42d29f/pages/country/[category]'
Not sure what I actually did wrong here, even though I'm pretty sure I used correct casing for the component file.
@CallmeHongmaybe Same issue, how did you solve it?
I think this could be useful.
isEnvDevelopment && new CaseSensitivePathsPlugin(),
@utiq I actually haven't solved this yet.
So I'm just gonna put the CaseSensitivePathsPlugin somewhere in next.config.js amirite
I solved my problem, in my case it was my git configuration, I run this:
git config --global core.ignorecase false
@utiq Thanks a lot for the code. I actually took out the --global flag and it worked perfectly.
Most helpful comment
@utiq Thanks a lot for the code. I actually took out the
--globalflag and it worked perfectly.