title: AngularJS component won't instantiate, "'module' is not a function"
body: <p>I've been asked to do a project in Angular 1, and I've been having a nightmare of a time just trying to get the page to load the app code from <code>bundle.js</code>. I've currently got an error along the lines of</p>
  
  <pre><code>[$injector:modulerr] Failed to instantiate module app due to:
  Error: [$injector:modulerr] Failed to instantiate module {"_invokeQueue": 
  [],"_configBlocks":[],"_runBlocks":[],"name":"approveComponent"} due to:
  Error: [ng:areq] Argument 'module' is not a function, got Object
  </code></pre>
  
  <p>but the only approveComponent I've got is essentially a blank placeholder -</p>
  
  <blockquote>
    <p>import angular from 'angular';</p>
    
    <p>const approve = angular.module('approveComponent', []);</p>
    
    <p>export default approve;</p>
  </blockquote>
  
  <p>What can I do to get this actually running?</p>
  
  <p>I'm using Webpack 4 to bundle everything. (NO errors from webpack.)</p>