Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

layout.tsx collision #11

Open
Owais-Eltigani opened this issue Apr 26, 2024 · 0 comments
Open

layout.tsx collision #11

Owais-Eltigani opened this issue Apr 26, 2024 · 0 comments

Comments

@Owais-Eltigani
Copy link

Hello @adrianhajdin, I've been following your ultimate nextjs course and so far so good but it seems there is an issue in the layout.tsx in the app folder and the layout.tsx in the (root) folder. when I start debugging my project it render the app layout.tsx elemnts correctly then it gives me error 404 this page couldn't be found for the (root ) layout.tsx ,however, when I navigate to another path like http://localhost:3000/ask-question it work fine and both layouts are shown correctly and their children too. moreover I started experimenting when I change the name of the (root)/layout.tsx -> (root)/page.tsx the error goes away but I lose the ability to access the children in that folder.

I'm on next 14.2.3 I tried to downgrad to your version in the project but didn't work tried to search and read docs and ask chatgpt but nothing seems to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant