title: How do I send an SMS in React Js with Twilio?
body: <p>So I used create-react-app to create a reactjs web app but for some reason, when I import the Twilio library/node module, I am getting this error in the browser:</p>
  
  <pre><code>TypeError: deprecate.stream is undefined
  ./node_modules/deprecate/index.js/&lt;
  node_modules/deprecate/index.js:28
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/9LuOg.png" rel="nofollow noreferrer">heres the screenshot of what I'm getting for better clarification</a></p>
  
  <p>Code:</p>
  
  <pre><code>const _sendSMS = (num, sender, senderUID) =&gt; {
    var twilio = require('twilio');
    var client = new twilio('MY_ID_HERE', 'MY_TOKEN_HERE');
    client.messages.create({
      to: `+1${num}`,
      from: '+12169301068',
      body: `Howdy, ${sender} reccomended you to XXXXXXX!!`
    });
  };
  </code></pre>
  
  <p>From what I've read online about another SMS library called nexmo, the library cannot run in a reactjs project, only on a legitimate node server. Is that the case here, am I missing some code, or configurations within the project? </p>
  
  <p>Thanks</p>