MongoDB and Mongoose - Create a Model

The codes are correct and i have used environment variable as a secret key in replit which stores the database URL.but still i dont why this error is happening . somebody please help me i am stuck on this
// running tests
Creating an instance from a mongoose schema should succeed
// tests completed
// console output
[Error: Cannot read properties of undefined (reading ‘modelName’)]

Tests

Failed: Creating an instance from a mongoose schema should succeed

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/114.0

Challenge: MongoDB and Mongoose - Create a Model

Link to the challenge:

Post the link to your Replit.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.