-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
What's the problem you're trying to solve?
Post any code you think might be relevant (one fenced block per file)
/Users/chelseagallagher/code/mealsApp/models/users.js:9
const UserSchema = new Schema({
^
TypeError: Schema is not a constructor
at Object.<anonymous> (/Users/chelseagallagher/code/mealsApp/models/users.js:9:20)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12)
at Module.require (node:internal/modules/cjs/loader:1143:19)
at require (node:internal/modules/cjs/helpers:119:18)
at Object.<anonymous> (/Users/chelseagallagher/code/mealsApp/controllers/usercontroller.js:3:14)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
Node.js v18.18.2
[nodemon] app crashed - waiting for file changes before starting...
If you see an error message, post it here. If you don't, what unexpected behavior are you seeing?
What is your best guess as to the source of the problem?
What things have you already tried to solve the problem?
Paste a link to your repository here
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels