Next.js Discord

Discord Forum

Weird behavior

Unanswered
Ojos Azules posted this in #help-forum
Open in Discord
Ojos AzulesOP
this the result of pnpm dev, I don't know why it redirects to the /undefined with the error code 404!
I haven't added any code of mine yet, and the problem is when I build the project, and then I request the root page in the webbrowser, it doesn't show anything!

18 Replies

Sun bear
send a screenshot of your folder structure
Ojos AzulesOP
Original message was deleted
Ojos AzulesOP
what is the env/route?
Original message was deleted
Ojos AzulesOP
Also, I have the app/page.tsx
Ojos AzulesOP
mgonna check them now
Ojos AzulesOP
could you guide how I can fill it? which source or what is the right question to ask deepseek so it can help me filling it
Nile perch
Show your app/layout.tsx and app/page.tsx files.
@Nile perch Show your app/layout.tsx and app/page.tsx files.
Ojos AzulesOP
Original message was deleted
Ojos AzulesOP
thank you for your help, but I still didn't find where the bug exactly is.
Sun bear
try commenting out the css import
that could be causing the issue
@Ojos Azules Click to see attachment
Saint Hubert Jura Hound
The global stylesheet shouldnt be in /src/app either way so the path is definitely wrong here
@Sun bear that could be causing the issue
Ojos AzulesOP
I have tried this solution, but it doesn't soved it, the css import is marked as error due to eslint
Saint Hubert Jura Hound
whats the error and where is the globals.css located
Sun bear
paste this as your home page and see if it works then:

export default function HomePage() {
  return <div>hello world</div>
}


if this does not fix the problem try deleting .next and node_modules folders and reinstalling the dependencies with npm/pnpm/yarn/bun install
everything else looks correct
Ojos AzulesOP
Hello, the issue wasn't in my code or configurations, the request was coming from an extention (https://addons.mozilla.org/en-US/firefox/addon/omnisearch/?utm_source=addons.mozilla.org&utm_medium=referral&utm_content=search), and when I removed it everything runs well.
Thank you a lot for being helpful, I really appreciate it 🙏