TypeErrorinitialTree is not iterable in Modern React Tutorial vid
The images map correctly until I try clicking on one, so I think the error may be misleading me.
I believe I have the modal set up to show the id at the bottom of the screen as shown in the tutorial, however, when I click the image I get the global error page.
Sentry captures the above "initialTree is not iterable" which seems to mean I'm trying to map something that can't be mapped.
file: app/page.tsx
file: server/queries.ts
Solution:Jump to solution
I figured it out now. I misunderstood the folder structure.
Correct: app/@modal/(.)img/[id]/
My error was thinking the
(.)
was another layer of the directory making it app/@modal/(.)/img/[id]
....4 Replies
Solution
I figured it out now. I misunderstood the folder structure.
Correct: app/@modal/(.)img/[id]/
My error was thinking the
(.)
was another layer of the directory making it app/@modal/(.)/img/[id]
.I'm not sure where I can mark this as resolved, though.
Can you right-click your own message > apps > mark solution?
That works. Thank you so much!