Utilizing the Events node.js module and Twilio Voice SDK

I am trying to utilize the Twilio Voice SDK to add a phone app/dialer that can make and accept calls to a Velo website. There are many examples from Twilio on how to do this utilizing various languages. I would like to add this functionality to a site created in Velo.

The problem arises after I include the Twilio Voice SDK npm package and try to utilize it in the prescribed Twilio manner which is to include the package like thus:

const Device = require('@twilio/voice-sdk').Device;

Upon running the code for this site I get an error in the web console that says:

“Cannot find module ‘events’ in ‘@twilio/audioplayer/es5’”

This would seem to indicate that the Events package for Node.js is not part of Velo. To fix this, I’ve tried adding Events npm package to my project as well, but with no success.

Does anyone have any insight how Velo adds polyfills or on how I might be able to utilize the events module?