Best answer

Getting “authentication failed: Cannot find module” error when authenticating

  • 12 June 2023
  • 1 reply



I’m fairly new to zapier and I am trying to do some investigation of what would be required for our company to integrate with Zapier.

I’m using the CLI to set up an integrations and I have managed to add authentication and an instant trigger. However, when I go to test a Zap using that trigger, I'm presented with the following when trying to log in:


Any idea what I’m doing wrong? The code passes test locally and deploys without any issue


Best answer by sb89 12 June 2023, 15:24

View original

1 reply


I think I figured this out. The scaffolding for the trigger added the following to the index.js file:



changing it to the following has fixed the issue: