Next.js 13.4 Parallel/intercepting routes inside route group gives error
Asked Answered
B

2

8

Here is my folder structure

enter image description here

I was following nextjs docs to make modal as their nextgram example, I list items on feedback route when i hit one of them it should be routing local/feedback to local/product/slug yet it gives multiple errors like this

Warning: Cannot update a component (HotReload) while rendering a different component (Router). To locate the bad setState() call inside Router, follow the stack trace as described in

Uncaught TypeError: initialTree is not iterable

The above error occurred in the component:at Router

Thanks for any help..

Balladeer answered 29/10, 2023 at 18:52 Comment(0)
S
21

You can remove the .next folder and reload your app, it worked for me.

Shapely answered 11/12, 2023 at 14:52 Comment(0)
F
7

After lot of debugging, the only thing that worked was removing the .next folder and restarting the dev server. Everything will work as expected.

Flouncing answered 11/1 at 18:47 Comment(2)
As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.Winer
Simply restarting the dev server worked for me, I did not have to remove the .next folder.Machuca

© 2022 - 2024 — McMap. All rights reserved.