Closed 4eJliK closed 6 days ago
I found the solution, you need to recheck the file you have in error, and in the file was specified '../../models/restaurant', and since they are in 1 directory, you need to replace '../../models/restaurant' with './restaurant'.
I highlighted a line that's white in bash when the others are gray.
$ node app.js node:internal/modules/cjs/loader:1228 throw err; ^
Error: Cannot find module '../../models/restaurant' Require stack:
Node.js v20.18.0
0)