Error: Cannot find module './wire_protocol/on_data'

I have been trying to deploy my project but getting this erro.Can anyone help me?
This is the log

==> Common ways to troubleshoot your deploy: https://docs.render.com/troubleshooting-deploys
Node.js v20.11.0
}
  ]
    '/opt/render/project/src/app.js'
    '/opt/render/project/src/node_modules/connect-mongo/build/main/index.js',
    '/opt/render/project/src/node_modules/connect-mongo/build/main/lib/MongoStore.js',
    '/opt/render/project/src/node_modules/mongodb/lib/index.js',
    '/opt/render/project/src/node_modules/mongodb/lib/change_stream.js',
    '/opt/render/project/src/node_modules/mongodb/lib/mongo_client.js',
    '/opt/render/project/src/node_modules/mongodb/lib/connection_string.js',
    '/opt/render/project/src/node_modules/mongodb/lib/sdam/monitor.js',
    '/opt/render/project/src/node_modules/mongodb/lib/cmap/connect.js',
    '/opt/render/project/src/node_modules/mongodb/lib/cmap/connection.js',
  requireStack: [
  code: 'MODULE_NOT_FOUND',
    at Module.require (node:internal/modules/cjs/loader:1235:19) {
    at Module._load (node:internal/modules/cjs/loader:1023:12)
    at Module.load (node:internal/modules/cjs/loader:1207:32)
    at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
    at Module._compile (node:internal/modules/cjs/loader:1376:14)
    at Object.<anonymous> (/opt/render/project/src/node_modules/mongodb/lib/cmap/connection.js:17:19)
    at require (node:internal/modules/helpers:176:18)
    at Module.require (node:internal/modules/cjs/loader:1235:19)
    at Module._load (node:internal/modules/cjs/loader:985:27)
    at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
- /opt/render/project/src/app.js
- /opt/render/project/src/node_modules/connect-mongo/build/main/index.js
- /opt/render/project/src/node_modules/connect-mongo/build/main/lib/MongoStore.js
- /opt/render/project/src/node_modules/mongodb/lib/index.js
- /opt/render/project/src/node_modules/mongodb/lib/change_stream.js
- /opt/render/project/src/node_modules/mongodb/lib/mongo_client.js
- /opt/render/project/src/node_modules/mongodb/lib/connection_string.js
- /opt/render/project/src/node_modules/mongodb/lib/sdam/monitor.js
- /opt/render/project/src/node_modules/mongodb/lib/cmap/connect.js
- /opt/render/project/src/node_modules/mongodb/lib/cmap/connection.js
Require stack:
Error: Cannot find module './wire_protocol/on_data'
  ^
  throw err;
node:internal/modules/cjs/loader:1147
==> Running 'node app.js'
==> Docs on specifying a Node version: https://render.com/docs/node-version
==> Using Node version 20.11.0 via /opt/render/project/src/package.json
==> Deploying...
==> Build successful 🎉
==> Build uploaded in 9s
==> Uploading build...
found 0 vulnerabilities
  run `npm fund` for details
42 packages are looking for funding
added 117 packages, and audited 298 packages in 3s
==> Running build command 'npm install'...
==> Docs on specifying a Node version: https://render.com/docs/node-version
==> Using Node version 20.11.0 via /opt/render/project/src/package.json
==> Checking out commit a77412215c44ebfe937ae8d46b29d3451fbdfa7a in branch master
==> Cloning from https://github.com/KARthiKReddY563/project

Hey,

The ‘Error: Cannot find module './wire_protocol/on_data'’ message pops up because Node can’t locate a file or module at that path. You should double-check that this path actually exists and remember that Linux is case-sensitive, so make sure there’s no difference in casing.

Jérémy.
Render Support, UTC+3

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