title: ReferenceError: SockJS is not defined, could not import module into Angular
body: <p>I am using Angular 1.5.11 and I am using sockjs &amp; stomp for connecting to a web socket. The Angular project has a bower dependency for stomp and sockjs-client, but when I use</p>
  
  <pre><code>var socket = new SockJS('http://localhost:8999/socket-app');
  </code></pre>
  
  <p>I get an error saying 'SockJS' is not defined. I use gulp for the build and serve. Do I have to explicitly declare or export this somewhere in the project?</p>
  
  <p>The same thing works when I put all my code in a simple single file html with sockjs and angular code.</p>
  
  <p>My directory structure below:</p>
  
  <p><a href="https://i.stack.imgur.com/7sF0H.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7sF0H.png" alt="enter image description here"></a></p>
  
  <p>Edit: To add more details, I have the following bower dependencies:</p>
  
  <p><a href="https://i.stack.imgur.com/0ba8Q.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0ba8Q.png" alt="enter image description here"></a></p>
  
  <p>After bower install, I see them in the components folder. so I have the dependencies required, but I guess something is still missing.</p>