title: Repl.it Failed to load module script: Expected a JavaScript module script
body: <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>import myJson from './usage.json';
  function pyRun(file, input) {
      console.log('b');
      $.ajax({
          type: "POST",
          url: `${file}.py`,
          data: { param: input },
      }).done(() =&gt; {
              console.log('a');
              console.log(myJson.test);
          });
  }
  
  function clicked(){
      console.log('c');
      pyRun('test', 'input');
  }
  
  document.getElementById("sendBtn").addEventListener("click", clicked());</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
      &lt;title&gt;Open Aternos Server!&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;script
            src="https://code.jquery.com/jquery-3.4.1.min.js"
            integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
            crossorigin="anonymous"&gt;&lt;/script&gt;
      &lt;input type="text" id="name" placeholder="User name"&gt;
      &lt;input type="text" id="pass" placeholder="Password"&gt;
    &lt;button id="sendBtn"&gt;Start&lt;/button&gt;
    &lt;script type="module" src="script.js"&gt;&lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>this is my html and js code and here also json:</p>
  <pre><code>{
  &quot;name&quot;: &quot;&quot;,
  &quot;pass&quot;: &quot;&quot;,
  &quot;info&quot;: &quot;&quot;,
  &quot;succes&quot;: &quot;&quot;,
  &quot;test&quot;: &quot;&quot;
  }
  </code></pre>
  <p>and also python:</p>
  <pre><code>print(&quot;runing nice!&quot;)
  uFile = open(&quot;usage.json&quot;, &quot;w&quot;)
  json_object = json.load(uFile)
  json_object[&quot;test&quot;] = &quot;test&quot;
  json.dump(json_object, uFile)
  uFile.close()
  </code></pre>
  <p>and when I run it on repl.it gives the error: &quot;Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of &quot;application/json&quot;. Strict MIME type checking is enforced for module scripts per HTML spec.&quot; I don't know why that's happening I search it on web but in codes they are using server hosts I am not using an host and because of this I don't know why this happens and also if I have any wrong thing in other parts of code please also say them because I can't run code with this error so I can't see the result thanks already(I use console.log('a') or console.log('c') like things to understand what part is wrong but console was empty there was only error I mention above)</p>