skip to Main Content

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


  1. I think "./ root" folder has a space, double check folder name again and remove it.

    Login or Signup to reply.
  2. Ensure that the file exists with the correct name and path. TypeScript is case-sensitive, so make sure the case matches exactly

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