I tried to import a file into a code but the foulder could not be found.
However when i try to type the name of the folder out it already suggests me the folder and recognizes it as such.
I also already have tried out to write the entire path out but the result is the same.
I hope someone can find my rookie mistake.
I have provided a screenshot where the folder name and the error can be found
Best Regards.enter image description here
enter image description here
import { Routes, Route } from "react-router-dom";
import "./globals.css";
import SigninForm from "./_auth/forms/SigninForm";
import { Home } from "./_root/pages";
import SignupForm from "./_auth/forms/SignupForm";
import AuthLayout from "./_auth/AuthLayout";
import RootLayout from "./_root";
const App = () => {
return (
<main className="flex h-screen">
<Routes>
{/* public routes */}
<Route element={<AuthLayout />}>
<Route path="sign-in" element={<SigninForm />} />
<Route path="sign-up" element={<SignupForm />} />
</Route>
{/* private routes */}
<Route element={<RootLayout />}>
<Route index element={<Home />} />
</Route>
</Routes>
</main>
);
};
export default App;
2
Answers
I think "./ root" folder has a space, double check folder name again and remove it.
Ensure that the file exists with the correct name and path. TypeScript is case-sensitive, so make sure the case matches exactly