I am making a project in react and I am getting the error
Failed to compile.
./src/App.js
Module not found: You attempted to import /.components/AddTodo which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
Read the error message carefully, it’s telling you what you’ve done wrong: you’ve written `import AddTodo from “/.components/AddTodo”, the first two characters are the wrong way around
Sorry, I wasn’t totally clear there. And (depending on operating system) the error message, specifically, is because when you’ve got the dot and the slash the other way around, what it’s trying to resolve is a file called “AddTodos.js” in a folder called “.components/” in the computer’s root directory