Help Needed: "Cannot find module 'node-ical'" Error During Deployment

Hi everyone,

I’m having trouble deploying my Node.js project on Render and could really use some help.

Problem Description

Everything works fine locally, but when I deploy the project to Render, I consistently get the following error:

javascript

Copy code

Error: Cannot find module 'node-ical'
Require stack:
- /opt/render/project/src/backend/index.js

What I’ve Tried So Far

  • The node-ical module is included in my package.json and installs without issues when running npm install locally.
  • I’ve confirmed that it’s listed in package-lock.json as well.
  • I’ve tried updating the dependencies, running npm audit fix, and even manually reinstalling node-ical.
  • Locally, everything runs smoothly, but the Render deployment keeps failing with this module error.

Additional Information

  • Node.js version: v20.15.1 (Render’s default)
  • I’ve double-checked the .gitignore and everything seems fine.
  • I’m wondering if there’s an issue with how Render handles dependency installation or module resolution during deployment.

Has anyone else faced a similar issue or have any suggestions on how to fix this? Any help would be greatly appreciated!

Thanks in advance!

Hi there,

Do you mind sharing your full build command?

If not, feel free to reach out to us privately via the Help link in the Dashboard so we can take a closer look at your service.

Regards,
Mike


Render Support Engineer, MT (UTC-6, UTC-7 in Winter)

Hello!

I sent a message via the Help link.

Marcell

Sounds good, thanks! Closing this one.

Regards,
Mike


Render Support Engineer, MT (UTC-6, UTC-7 in Winter)

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