Solved successfully.
You can check out this article for the method to install Prisma under Nuxt: Install Prisma
The reason I encountered this error this time is that I reinstalled the node_modules directory. Here is the package.json:
"@prisma/client": "6.7.0",
"prisma": "^6.7.0",
prisma will install the latest version, which is 6.17 at this time. However, @prisma/client was generated when I executed prisma generate previously, so it is version 6.7.0. This version mismatch causes the error.
Solution 1: Make @prisma/client and prisma versions consistent, and reinstall dependencies.
"@prisma/client": "6.17.0",
"prisma": "6.17.0",