title: Error [ERR_REQUIRE_ESM]: Must use import to load ES module
body: <p>I am super new to javascript, and a file app.js I am trying to run with npm looks like this:</p>
  <pre><code>import {placeOnWallComponent, wallFromFloorComponent} from './wall-from-floor'
  AFRAME.registerComponent('place-on-wall', placeOnWallComponent)
  AFRAME.registerComponent('wall-from-floor', wallFromFloorComponent)
  </code></pre>
  <p>And when I change the file type to app.mjs instead of app.js, I get another error:
  &quot;Must use import to load ES Module.&quot;</p>
  <p>I also have this as my package.json</p>
  <pre><code>{
    &quot;name&quot;: &quot;src&quot;,
    &quot;version&quot;: &quot;1.0.0&quot;,
    &quot;description&quot;: &quot;&quot;,
    &quot;main&quot;: &quot;app.js&quot;,
    &quot;@std/esm&quot;: &quot;cjs&quot;,
    &quot;scripts&quot;: {
      &quot;test&quot;: &quot;echo \&quot;Error: no test specified\&quot; &amp;&amp; exit 1&quot;,
      &quot;start&quot;: &quot;node app.mjs&quot;
    },
    &quot;author&quot;: &quot;&quot;,
    &quot;license&quot;: &quot;ISC&quot;
  }
  </code></pre>
  <p>How do I fix this error?</p>
  <p>UPDATE: It's still happening even after I changed the files to .mjs. If I try having start be just 'app.mjs' instead of 'node app.js', I get:</p>
  <p>'this file does not have an app associated with it'</p>