Добрый день.
Есть 2 файла. html и js. При запуске html из js должны подгружаться функции. Но онине подгружаются, а в консоли выдается ошибка Uncaught SyntaxError: Cannot use import statement outside a module
html:
<!DOCTYPE html>
  <head>
        <title>TG Graph</title>
  </head>
  <body>
    <div class="container">
     <script>
import {sayHi, sayBye} from './say.js';
sayHi('John'); // Hello, John!
sayBye('John'); // Bye, John!
</script> 
    </div>
    
  </body>
</html>
js:
function sayHi(user) {
  alert(`Hello, ${user}!`);
}
function sayBye(user) {
  alert(`Bye, ${user}!`);
}