Closed matanui159 closed 2 years ago
This is actually causing more trouble than it is solving. It would be nice for this to work, also for worker support, but I don't have the energy to fix all the issues. I so far have found these two:
window
used to define the global Twilio
encoding
in node-fetch
Contributing to Twilio
Pull Request Details
Description
When using this library in frameworks like Next.js that uses the same code for both client-side and server-side rendering, it will make the server crash even if not using any of the exports. This is because it does not check for the existence of
window
before checking its properties.This adds a small
!!window
to theisSupported
test.Burndown
Before review
Updated affected documentationN/Anpm test
Included screenshot as PR comment (if needed)N/A