title: SystemJS: Application died in status LOADING_SOURCE_CODE: Cannot find module
body: <p>So, we are in the process of setting up a larger application consisting of several React apps. We are using the single-SPA framework and got the <a href="https://github.com/me-12/single-spa-portal-example" rel="nofollow noreferrer">single-spa-portal-example</a> running.</p>
  
  <p>In the example, SystemJS is included directly from <code>portal/libs</code> folder. We changed it to be managed via npm and after running <code>npm update</code> we are now using SystemJS v. 3.0.2.</p>
  
  <p>The <code>loadApp</code> function defined in <code>/portal/src/helper.js</code> makes use of <code>SystemJS.import()</code> (changed that to <code>import()</code> with the same result).</p>
  
  <p>Webpack is configured to serve the <code>singleSpaEntry.js</code> file for example at the URL <code>http://localhost:9001/app1/src/singleSpaEntry.js</code> (for app1) as an AMD module. It does so fine, I can open that file directly in the browser.</p>
  
  <p>When opening the portal app at <code>localhost:9000</code> I can also verify that the <code>loadApp</code>function is running. However, I get the following error message:</p>
  
  <blockquote>
    <p>Uncaught app1: Application 'app1' died in status LOADING_SOURCE_CODE:
    Cannot find module '/app1/src/singleSpaEntry.js'
        at <a href="http://localhost:9000/main.js:12500:11" rel="nofollow noreferrer">http://localhost:9000/main.js:12500:11</a></p>
  </blockquote>
  
  <p>I get this error for every sub app, I have tried multiple webpack configurations but I assume this issue is either related to SystemJS itself or to the way the module should be declared in singleSpaEntry.js.</p>
  
  <p>Any help is appreciated.</p>