Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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..

like image 748
Fatih Can Avatar asked Dec 05 '25 14:12

Fatih Can


2 Answers

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

like image 83
Merlinpanda Avatar answered Dec 08 '25 06:12

Merlinpanda


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

like image 20
Soham Sarkar Avatar answered Dec 08 '25 06:12

Soham Sarkar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!