Boilerplate-mongomongoose- mongoose.connect

a crash loop? what is the problem here and how to fix it?

you mean this one?

boilerplate-mongomongoose (1) - Replit

thanks for this but after defining , still an error.

MissingSchemaError: Schema hasn’t been registered for model “undefined”.
Use mongoose.model(name, schema)
at Mongoose.model (/home/runner/boilerplate-mongomongoose-1/node_modules/mongoose/lib/index.js:526:13)

thanks these helped and worked.

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