Next.js Discord

Discord Forum

Parallel routes throwing error after adding layout.tsx

Answered
AM posted this in #help-forum
Open in Discord
AMOP
I've have following structure:

hey, i have following route strucutre:

 app
   (protected)
      products
         @products-list
            page.tsx
         page.tsx
         layout.tsx


But right after i've added layout error start showing up:
Answered by Ray
no -
View full answer

9 Replies

AMOP
tried, again the same:
@AM tried, again the same:
try @productslistmaybe?
AMOP
damn i've attached SS but not sure if they were successfully applied:
nah not working with /products-list
http://localhost:3001/@products-list also not working, but i assume /products should be the segment
change the name of parallel route to @productslist
no -
Answer
AMOP
you are amazing!