import ts file in html from outside module code example
Example: Uncaught SyntaxError: Cannot use import statement outside a module
1. Inside scripts file import the following module
import {a} from "./module.js";
alert(a);
2. add that script inside file you want to use it
<script type="module" src="PATH_TO_FILE"></script>