Next.js Discord

Discord Forum

Intercepting routes error client error

Unanswered
sergiy.eth posted this in #help-forum
Open in Discord
Error I am getting
main-app.js?v=1713288363962:2832 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 https://reactjs.org/link/setstate-in-render


helpers.js:96 Uncaught TypeError: initialTree is not iterable


This app is currently being refactored from /pages to App Router - so I have both - wondering if that's making intercepting routes not behave as expected.

I am following the setup close to https://github.com/vercel/nextgram/tree/main/app

1 Reply

same issue here