MongoDB and Mongoose - Install and Set Up Mongoose

Tell us what’s happening:
I cant use the project in replit.
who can help me??
Your code so far
Cannot find module ‘/home/runner/boilerplate-mongomongoose-1/index.js’
Require stack:

  • /nix/store/qpnf0dafrfsbcwb4z7cphjm0dff0vl7l-prybar-nodejs-0.0.0-e0d9a52/prybar_assets/nodejs/module-context-hook.js
  • /tmp/prybar-nodejs-368515686.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
    at Function.resolve (node:internal/modules/cjs/helpers:109:19)

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: MongoDB and Mongoose - Install and Set Up Mongoose

Link to the challenge:

You need to configure the run command when you first import the repl (as per challenge instructions):

Otherwise, the repl will try to run from index.js (which doesn’t exist).

EDIT: Corrected config instructions

However, if you go into your .replit under Config files, you can change the entrypoint to server.js:

entrypoint = "server.js"

This should resolve the problem.

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