Next.js recently became the official React framework as outlined in React docs. In this course, you'll learn the most important Next.js concepts and how they fit into the React ecosystem. Finally, you'll put your skills to the test by building a modern full-stack Next 14 application.
If you installed Mongoose v8.0.0, you'll hit an error on prompt deletion.
The problem is that in Mongoose v8.0.0, the "findByIdAndRemove" query is replaced with "findByIdAndDelete".
you can check the version of Mongoose and if you were using this version, just replace it as I said in the "app/api/prompt/[id]/route.js" file.
If you installed Mongoose v8.0.0, you'll hit an error on prompt deletion. The problem is that in Mongoose v8.0.0, the "findByIdAndRemove" query is replaced with "findByIdAndDelete". you can check the version of Mongoose and if you were using this version, just replace it as I said in the "app/api/prompt/[id]/route.js" file.