Deploy peerjs server

Hey, I’m trying to deploy a peerjs server and i keep getting this error

Sep 3 12:13:25 AM  ==> Using Node version 20.5.1 via /opt/render/project/src/package.json
Sep 3 12:13:25 AM  ==> Docs on specifying a Node version: https://render.com/docs/node-version
Sep 3 12:13:25 AM  ==> Starting service with 'node peerjs --port 9000 --key peerjs --path /'
Sep 3 12:13:25 AM  node:internal/modules/cjs/loader:1051
Sep 3 12:13:25 AM    throw err;
Sep 3 12:13:25 AM    ^
Sep 3 12:13:25 AM  
Sep 3 12:13:25 AM  Error: Cannot find module '/opt/render/project/src/peerjs'
Sep 3 12:13:25 AM      at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15)
Sep 3 12:13:25 AM      at Module._load (node:internal/modules/cjs/loader:901:27)
Sep 3 12:13:25 AM      at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
Sep 3 12:13:25 AM      at node:internal/main/run_main_module:23:47 {
Sep 3 12:13:25 AM    code: 'MODULE_NOT_FOUND',
Sep 3 12:13:25 AM    requireStack: []
Sep 3 12:13:25 AM  }
Sep 3 12:13:25 AM  
Sep 3 12:13:25 AM  Node.js v20.5.1

Hey,

We’re looking for the ‘peerjs’ module in ‘/opt/render/project/src/peerjs’, meaning the root of your repo, is the module there at runtime?

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

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