skip to Main Content

I ran into this problem when am following this video tutorial until here: https://youtu.be/nGoSP3MBV2E?list=PLIZkq64ad9C4POK0E1fhCaxlxTXwr7wSh&t=5413. After i restart my computer the next day, the crash happen. I don’t know what cause it since I have followed some tutorial on how to fix my problem and see no result:
Problem when

Here’s the source code of the failed code:

Header.js
header

layout.js:
layout
Source code Github:

I have tried fixing any typo in the program, went as far as re-doing the whole tutorial from begin but whenever I exit my project, the problem emerge again.

2

Answers


  1. Chosen as BEST ANSWER

    Simply replacing "@" with ".." fix this problem for me


  2. Is it possible that you have moved your Header component to a different folder? Make sure that it exists in the directory in the import statement.

    Try this if you are on Windows.

    1. Delete the import statement. It should display ‘Cannot find Header’ error.
    2. Place your cursor at the end of the component tag
    3. ctrl + .
    4. Select the correct import path (usually at the top)
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search