Skip to content

Error: Command "yarn run build" exited with 1 #51

Locked Answered by styfle
Claudio-Lins asked this question in Help
Discussion options

You must be logged in to vote

Hi @Claudio-Lins

The relevant error message is here:

ModuleNotFoundError: Module not found: Error: Can't resolve '../components/nav' in '/vercel/workpath0/pages'

So it sounds like you are trying to import a file that doesn't exist. You'll need one of these to exist:

  • components/nav.js
  • components/nav/index.js

This is case sensitive so if you had a file called components/Nav.js you would have to import components/Nav to match the file.

Replies: 0 comments 10 replies

Comment options

You must be logged in to vote
6 replies
@mahijendra
Comment options

@styfle
Comment options

@Indu-Chandana
Comment options

@mustajabgohar123
Comment options

@SANGNGUYEN24
Comment options

Answer selected by styfle
Comment options

You must be logged in to vote
1 reply
@ShariqKalim
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
9 participants