next.js icon indicating copy to clipboard operation
next.js copied to clipboard

Build process doesn't end

Open DMomplaisir opened this issue 7 years ago • 5 comments

Bug report

Describe the bug

I keep trying to run "next build", and it won't work. I've tried deleting the .next folder, and I've ran both yarn and npm (after deleting yarn.lock, and package-lock, respectively)

To Reproduce

Checkout

1.Clone https://github.com/AmherstStudent/amherst-student-site/tree/code-clean 2. Run yarn && yarn build 3. See error

Expected behavior

Finished build process

System information

  • Windows
  • Version of Next.js: v8. canary

DMomplaisir avatar Jul 07 '19 06:07 DMomplaisir

I don't see any error image

masives avatar Jul 08 '19 12:07 masives

Not git master - the branch of code-clean isn't working. My apolgize I should have made it clearer.

DMomplaisir avatar Jul 08 '19 19:07 DMomplaisir


./components/Article/Image.js
Module not found: Can't resolve '../Basics/Card' in '/home/jozef-piecyk-10clouds/nextjs/amherst-student-site/client/components/Article'

You're trying to import file Card (Uppercase) while you only have card.js (lowercase) in the directory you're importing module from. After fixing this I got error that it cannot resolve components/Article/AuthorCard, again filename is authorcard. Make sure that filename and path in import is the same. You can use eslint or some extension to help you with this (like PathIntellisense for VSCode)

masives avatar Jul 09 '19 11:07 masives

Closing as I'm guessing this case-sensitivity problem ended up fixing the build. Please let us know if you still need help! ☝️

Timer avatar Jul 19 '19 02:07 Timer

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

balazsorban44 avatar Jan 31 '22 11:01 balazsorban44