Here is my folder structure

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 insideRouter, 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..
You can remove the .next folder and reload your app, it worked for me.
After lot of debugging, the only thing that worked was removing the .next folder and restarting the dev server. Everything will work as expected.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With