twilio-node icon indicating copy to clipboard operation
twilio-node copied to clipboard

Feature request: Browser detection and helpful error message

Open dkundel opened this issue 5 years ago • 3 comments

It's pretty common these days to use packages on npm for either server-side or client-side applications. I've seen a lot of people mistakenly try to use the Twilio helper library in client-side applications like a React app.

Right now it will throw a random error. Instead we should probably give a helpful message. One way could be to detect if the code is being run in a browser environment and throwing an error. But I'm open for other suggestions.

dkundel avatar Feb 28 '20 23:02 dkundel

This issue has been added to our internal backlog to be prioritized. Pull requests and +1s on the issue summary will help it move up the backlog.

childish-sambino avatar Mar 02 '20 20:03 childish-sambino

fs is not resolvable in browser. Ticket seems unnecessary. Screen Shot 2022-12-30 at 10 25 25 PM

mariomui avatar Dec 31 '22 06:12 mariomui