skip to Main Content

Javascript – "TypeError: Cannot read properties of undefined (reading 'foundTicket')" in my next.js app, Code seems to have no Problems

I'm new to next.js and making this project following an youtuber, here you can find my code: https://github.com/Fanguiee/ticketing-app/tree/edit-existing-item or you can also read below.Thanks in advance:) Screenshot: enter image description here Error in text: ⨯ appTicketPage[id]page.jsx (30:40) @ foundTicket ⨯…

VIEW QUESTION

Reactjs – In prop passing through children, how to align type to it

Problem: when I use below expression, IDE alerts typescript syntax error. I think typescript expects children to be assigned as ReactNode not as Array<object>. ----/page.tsx/---- ... <TopBar>{[ {text:"career",href:"",class:"p-0 m-0"}, {text:"contact",href:"",class:"p-0 m-0"}, {text:"patient registry",href:"/patient_registry",class:"custom-outline p-1 rounded-2xl px-4 hover:bg-black hover:text-white"} ]}</TopBar> ...…

VIEW QUESTION
Back To Top
Search