skip to Main Content

Reactjs – Next.js Error: async/await Not Supported in React Client Component Despite No Usage – 'use client' Causing Issue"

For simplicity, I have this useState function 'use client' import {useState} from 'react'; const Home = () => { const [juice, setJuice] = useState('apple'); return ( <div className='w-full flex flex-col lg:flex-row h-40 bg-black' onClick={() => setJuice('orange')}> <p className='text-white text-2xl font-bold…

VIEW QUESTION

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
Back To Top
Search