Next.js Discord

Discord Forum

File not found error even though file is in the project folder

Answered
Northeast Congo Lion posted this in #help-forum
Open in Discord
Northeast Congo LionOP
So there is this file in this sub folder inside the src directory but when I run it states an error that it doesnt exist for some reason. This client session file.

Here is the error :
 ⨯ ./orbit-ai/src/app/layout.js:4:1
Module not found: Can't resolve '../components/ClientSessionProvider'
  2 | import { Inter } from 'next/font/google';
  3 | import './globals.css';
> 4 | import ClientSessionProvider from '../components/ClientSessionProvider';
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  5 |
  6 | const inter = Inter({ subsets: ['latin'] });
  7 |



https://nextjs.org/docs/messages/module-not-found


 ○ Compiling /_error ...
 ✓ Compiled /_error in 1792ms
 GET / 500 in 6675ms
 ✓ Compiled /favicon.ico in 303ms
 GET /favicon.ico 500 in 392ms
Answered by Dutch
../components no, ./components both layout and components folder are at same level
View full answer

6 Replies

Northeast Congo LionOP
Please help out, if any code is required of any particular file I will provide
This is sort of urgent ngl please help out
Dutch
../components no, ./components both layout and components folder are at same level
Answer
Northeast Congo LionOP
alright
thanks
Dutch