skip to Main Content

I am new to React and I am trying to do a follow along project but Im stuck with importing my files.I dont no what am I missing. I am trying to import navlinks and logo,menu, close in Navabr components
This is the error im facing ;

Here is my folder structure
enter image description here

Thanks

Tried changing the path ..I know something is up with the way the path is written but not sure what

2

Answers



  1. Then u write "./constants" u are just move into assets folder.
    Therefore, you need to go down to the desired level using ..

    Also your export navLinks but tried to import navlinks.(lower L).

    In general, I would advise setting absolute paths for convenience.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search