Hey guys, im having trouble with a section in the Next.js course. Im on the second half building the issue tracker. I am on the “Handling form Submissions” video and everything is working good till i change my
I noticed i was not using the handleSubmit function on the screen shot above but now i do and im still getting the similar errors.
I have figured it out. I was using a mixture of new versions and the versions that Mosh was doing. I was also getting a caching error. What i did was remove the .next/cache file using:
rm -rf .next/cache
then i build the project with:
npm run build
if that does not work then look to see that your project dependencies, including Next.js and Webpack, are up-to-date, use this command:
npm outdated
if there are any that are outdated, update them with:
npm update
And run it and i hope it works!! It did for me and im so excited that now i can move forward with this project!