Error: Cannot find module './mongoose-models'

im using express js and mongoose 6.2.1 version trying to setup forest admin for my app whenever i setup my app.js file this code from forest admin doc:

const { createAgent } = require(‘@forestadmin/agent’);
const { createMongooseDataSource } = require(‘@forestadmin/datasource-mongoose’);
// Retrieve your mongoose connection
const connection = require(‘./mongoose-models’);

// Create your Forest Admin agent
// This must be called BEFORE all other middleware on the app
authSecret: process.env.FOREST_AUTH_SECRET,
envSecret: process.env.FOREST_ENV_SECRET,
isProduction: process.env.NODE_ENV === ‘production’,

// Create your Mongoose datasource
// Replace “myExpressApp” by your Express application


it said:Error: Cannot find module ‘./mongoose-models’

help me to fix it

Hello Zahed,

Do you have a file named mongoose-models.js at the same level that app.js ?

├── app.js
└── mongoose-models.js

Best regards,