Too Long; Didn't Read
The first time I wrote a code that contained an import statement, I made a stupid mistake. A module is just a file that exports some code. JavaScript developers have been using modules with libraries’ aid till the community introduced them as a built-in feature in ES6. It turns out that I should change the type attribute in the script tag because I’m dealing with a module, not a regular JavaScript file. The solution in a Stack overflow was found in Stack overflow.