Next.js Discord

Discord Forum

app router not working in page.tsx

Answered
Furinaaaaa posted this in #help-forum
Open in Discord
Answered by Ray
you didn't return in ProjectLayout
View full answer

65 Replies

@Furinaaaaa Click to see attachment
did you render the children props in app/layout.tsx and app/project/layout.tsx?
@Ray did you render the children props in `app/layout.tsx` and `app/project/layout.tsx`?
@Furinaaaaa Click to see attachment
what about app/layout.tsx?
@Ray what about `app/layout.tsx`?
root page working
but /projects not working
@Furinaaaaa but /projects not working
/skills and /working work?
@Ray /skills and /working work?
no i dont code it yet
@Furinaaaaa Click to see attachment
could you show app/template.tsx?
@Ray
@Furinaaaaa Click to see attachment
have you tried restart the dev server?
i remove .next
and build new server
@Furinaaaaa and build new server
does / work?
all
remove /.next
all doesn't work?
/ working
but /projects no
global-error and error not working too
@Ray all doesn't work?
do you need use live share
old project working normal
but this project have alotof error
i code same style with old project
@Ray ok
check dms pls
@Ray wait
i working when you rename
layout => _layout
css dont have problem
layout.tsx doesnt work but _layout.tsx work
you didn't return in ProjectLayout
Answer
@Furinaaaaa Click to see attachment
here
Oh shiet
My bad
Tysm
np
@Ray np
Maybe i need create my snippet for it :()
so global-error
i returned
@Furinaaaaa i returned
does it work?
I haven't look at it
no
do you need share port?
could you send me the link again?
@Ray could you send me the link again?
Your dms
i removed :lolsob:
@Ray i removed <:lolsob:753870958489632819>
i shared you port 3000
its working
css issue
Okay
Thanks
ok i closed
@Ray ok i closed
i forgot not-found.tsx :(((
i read the docs again and use global-error
what do you mean?
old project i use not-found to handle 404 error
i forgot it
when i try use global-error to change it, it doesnt work
oh you were trying to use global-error to handle 404?
lol