Failed Login with error "Cannot find module..."

Problem Statement

We are observing the “Cannot find module” error when using an Action, Rule, or Hook.

Symptoms

Logins will fail with the error beginning like “Cannot find module…”

Steps to Reproduce

Add an unsupported node module to a Rule, Action, or Hook.

Cause

Using an unsupported node module in an Action, Rule, or Hook.

Solution

Use a supported node module in the Rule, Action, or Hook. You can find supported modules here: Can I require? - Search which node modules you can use in webtask.io.