I'm trying to import a File. When I use the Relative Path I get an error. But when I use the full path. There is no problem. No idea why and it's bugging me a lot.
So when I use:
import SearchBar from './components/SearchBar/SearchBar.js';
I get:
Module not found: Can't resolve './components/SearchBar/SearchBar.js'
But when I use the Full Path:
import SearchBar from /Users/xxx/Proyects/DevProyect/src/components/SearchBar/SearchBar.js
It runs ok.