While I was following with Next.js tutorial and reached this step to set up the database – https://nextjs.org/learn/dashboard-app/setting-up-your-database I didn’t want to create a repository to deploy into Vercel; hence, I decided to run Postgres in my local development environment. However, it was not that easy to set it up. The errors I got were…
Category: React.js/Next.js
React.js – TypeError: Cannot read property ‘setState’ of undefined
Problem code Error Solution https://stackoverflow.com/questions/32317154/react-uncaught-typeerror-cannot-read-property-setstate-of-undefined https://reactjs.org/docs/handling-events.html With ES5 With ES6