MongoDB and Mongoose : Create a Model

Tell us what’s happening:
I am getting these errors…

at Object. (/app/server.js:75:14)

6:17 AM

at Module._compile (internal/modules/cjs/loader.js:701:30)

6:17 AM

at Object.Module._extensions…js (internal/modules/cjs/loader.js:712:10)

6:17 AM

at Module.load (internal/modules/cjs/loader.js:600:32)

6:17 AM

at tryModuleLoad (internal/modules/cjs/loader.js:539:12)

Your code so far

 var mongoose = require('mongoose');
  var Schema = mongoose.Schema;

var personSchema = new Schema({
  name: {
    type: String,
    required: true
  age: Number,
  favoriteFoods: [String]

var Person = mongoose.model('Person', personSchema);

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36.

Challenge: undefined

Link to the challenge:

Can you provide a link to your Glitch project? If you are not using Glitch, then please provide a link to your full project code (i.e. GitHub or

@sieroniekuggy We may need to update the instructions as you are not supposed to make any changes to the server.js file. Instead, you are only supposed to make changes to the myApp.js file and the package.json file for all of these exercises.

In fact, the first 4 lines of the server.js file show the following:

 * the verification process may break

I suggest starting the project over with a new clone of the boilerplate and update only the myApp.js and package.json file where necessary.

ok thank you. let me start from stratch

now mongoose is not connecting to the database