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
index.js file of constants folder
here
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.