title: Module doesn't provide an export named "default"
body: <p>There are a two similar question but their solutions either are a work around that stops using modules or don't solve my issue. The modules don't seem to be working as expected. I'm running this through a local host server, using node and I just updated node. I'm sure the cause of this error, so I put all the files below.</p>
  
  <p>I'm getting an error stating my drawLine module isn't exporting something called default -why? </p>
  
  <p>The error it throws is: </p>
  
  <pre><code>Uncaught SyntaxError: The requested module './drawLine.js' does not provide 
  an export named 'default'
  </code></pre>
  
  <p>In addition if I change the drawLine module to just export normally using export {drawLine} and import using import {drawLine} from "./drawLine.js"; </p>
  
  <p>It throws the error: </p>
  
  <pre><code>Uncaught SyntaxError: The requested module './drawLine.js' does not provide 
  an export named 'drawLine'
  </code></pre>
  
  <p>app.js:</p>
  
  <pre><code> import drawLine from "./drawLine.js";
  
   console.log(imports.drawLine);
   let line= imports.drawLine(0,100);
   let body= document.getElementsByTagName("body")[0];
   body.append(line);
  </code></pre>
  
  <p>drawLine.js</p>
  
  <pre><code>function drawLine(x,y){
     let canvas = document.createElement("canvas");
     let canvasContext= canvas.getContext("2d");
     canvasContext.beginPath();
     canvasContext.moveTo(0,0);
     canvasContext.lineTo(x,y);
     canvasContext.stroke();
  
    return canvas;
  }
  
  export default drawLine;
  </code></pre>
  
  <p>index.html:</p>
  
  <pre><code> &lt;!DOCTYPE html&gt;
   &lt;html&gt;
        &lt;head&gt;
            &lt;meta charset="utf-8"&gt;
  
        &lt;/head&gt;
        &lt;body&gt;
            &lt;p&gt;hello&lt;/p&gt;
            &lt;script type="module" src="app.js"&gt;&lt;/script&gt;
        &lt;/body&gt;
    &lt;/html&gt;
  </code></pre>
  
  <p>nodeServer.js </p>
  
  <pre><code> let HTTP = require("http");
   let fs = require("fs");
  
    let requestListener = function(req, res){
        let url = req.url;
        console.log(url);
  
        if(url === "/index.html"){
            fs.readFile("index.html", function(err, data){
               if(err){
                    throw err;
               }
  
                else{
                   res.setHeader("Content-Type", "Text/html");
                    res.write(data);
                    res.end();
                }
            });
        }
        else if(url === "/app.js" || url === "/drawLine.js" || url === "/canterSet.js") {
            fs.readFile("app.js", function(err, data){
                if(err){
                   throw err;
                }
  
                else{
                    res.setHeader("Content-Type", "application/javascript");
                    res.write(data);
                    res.end();
                }
             });
        }
   }
  
    let server = HTTP.createServer(requestListener);
  
    server.listen(8080);
  </code></pre>