I deployed my up and it was working but today when I made changes and deployed I get these errors

Error: Cannot find module ‘side-channel’
Oct 20 06:32:57 PM Require stack:
Oct 20 06:32:57 PM - /opt/render/project/src/node_modules/qs/lib/stringify.js
Oct 20 06:32:57 PM - /opt/render/project/src/node_modules/qs/lib/index.js
Oct 20 06:32:57 PM - /opt/render/project/src/node_modules/express/lib/middleware/query.js
Oct 20 06:32:57 PM - /opt/render/project/src/node_modules/express/lib/application.js
Oct 20 06:32:57 PM - /opt/render/project/src/node_modules/express/lib/express.js
Oct 20 06:32:57 PM - /opt/render/project/src/node_modules/express/index.js
Oct 20 06:32:57 PM - /opt/render/project/src/app.js
Oct 20 06:32:57 PM at Function.Module._resolveFilename (internal/modules/cjs/loader.js:885:15)
Oct 20 06:32:57 PM at Function.Module._load (internal/modules/cjs/loader.js:730:27)
Oct 20 06:32:57 PM at Module.require (internal/modules/cjs/loader.js:957:19)
Oct 20 06:32:57 PM at require (internal/modules/cjs/helpers.js:88:18)
Oct 20 06:32:57 PM at Object. (/opt/render/project/src/node_modules/qs/lib/stringify.js:3:22)
Oct 20 06:32:57 PM at Module._compile (internal/modules/cjs/loader.js:1068:30)
Oct 20 06:32:57 PM at Object.Module._extensions…js (internal/modules/cjs/loader.js:1097:10)
Oct 20 06:32:57 PM at Module.load (internal/modules/cjs/loader.js:933:32)
Oct 20 06:32:57 PM at Function.Module._load (internal/modules/cjs/loader.js:774:14)
Oct 20 06:32:57 PM at Module.require (internal/modules/cjs/loader.js:957:19) {
Oct 20 06:32:57 PM code: ‘MODULE_NOT_FOUND’,
Oct 20 06:32:57 PM requireStack: [
Oct 20 06:32:57 PM ‘/opt/render/project/src/node_modules/qs/lib/stringify.js’,
Oct 20 06:32:57 PM ‘/opt/render/project/src/node_modules/qs/lib/index.js’,
Oct 20 06:32:57 PM ‘/opt/render/project/src/node_modules/express/lib/middleware/query.js’,
Oct 20 06:32:57 PM ‘/opt/render/project/src/node_modules/express/lib/application.js’,
Oct 20 06:32:57 PM ‘/opt/render/project/src/node_modules/express/lib/express.js’,
Oct 20 06:32:57 PM ‘/opt/render/project/src/node_modules/express/index.js’,
Oct 20 06:32:57 PM ‘/opt/render/project/src/app.js’
Oct 20 06:32:57 PM ]
Oct 20 06:32:57 PM }

Hi there,
Have you added the side-channel to your dependencies here to have us install it when you deploy to us? Check your package.json?

John B

Hi John thanks for getting back to me, I added in the side-channel under my dependencies but still I get the same error after deploying.

Can you check that you are actually installing the dependencies as part of the build command, typically you want to make sure you’re invoking npm install before you run whatever build command you have there already,

Regards,

John B

So i tried installing the dependency but all didn’t work out and it seemed time consuming so I deleted the web service and reconnected it and everything worked fine.
Thank you for your time and help though.

ah ok, I wonder if ‘clear build cache & deploy’ from the Manual Deploy button would have helped, you certainly shouldn’t have to delete a webservice to install a dependency.

But I’m glad you got it figure out here,

Regards,

John B

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