title: Uncaught ReferenceError: RSVP is not defined , error while using require.js with rsvp
body: <p>I am working on a demo showing the error handling in promises using <strong>rsvp.js</strong>. Everything seemed fine, till I used the CDN url for rsvp.js in a  tag. Now since I have require.js for module loading in my application, I tried loading the rsvp.js module via require js  syntax. In the Chrome network tab, I see the rsvp.js module getting loaded properly as well, but I get the below  error in console,</p>
  
  <blockquote>
    <p>Uncaught ReferenceError: RSVP is not defined.</p>
  </blockquote>
  
  <pre><code>require(["bootstrap","js/rsvp"], function(bootstrap,rsvp) { 
  $(document).ready(function () {
      function getEmployeeDetails() {
          var radioValue1 = $("input[name='option1']:checked").val();
          var requrl;
          if (radioValue1 == "fail") {
              requrl = "../../../testservice/getEmployeeIdss";
          } else {
              requrl = "../../../testservice/getEmployeeId";
          }
          return new RSVP.Promise(function (resolve, reject) {
              $.ajax({
                  url: requrl,
                  success: function (response) {
                      try {
                          $('#successBoard').append("&lt;b&gt; &lt;i&gt; Ajax Call 1 Succeeded! &lt;/i&gt;  &lt;/b&gt;&lt;br/&gt;" + "Employee ID:" + response.stuId + "&lt;br/&gt;");
                          resolve(response.stuId);
                      } catch (e) {
                          reject(e);
                      }
                  },
                  error: function (xhr, ajaxOptions, thrownError) {
                      console.log('Ajax 1 failed : Rejecting Promise 1');
                      $('#errorBoard').append("&lt;b&gt; &lt;i&gt; Ajax 1 failed : Rejecting Promise 1&lt;/i&gt;  &lt;/b&gt;&lt;br/&gt;");
                      reject(thrownError);
                  }
              });
  
          });
      }
  </code></pre>