I am trying to use a method from a javascript module and i dont understand why i get this error :
index.html:5
Uncaught ReferenceError: starts is not defined at window.onload (index.html:5:11)
I have 2 js files and a html one and all are in the same folder.
connect.js
function start(){
    console.log("ok");
}
main.js
import{start} from './connect.js';
export{starts};
function starts(){
    start();
    console.log("started script");
}
Index.html
<html>
    <body>
       <script type="text/javascript"   >
        window.onload=function(ev){
          starts();
        };
       </script>
    </body>
   
    <script type="module"   src="./connect.js"></script>
    <script type="module" src="./main.js"></script>
</html>
 
     
    