Skip to main content
I made the <script> tag visible by formatting the code.
Source Link

useUse a filename with extension .mjs except.mjs instead of .js.js in a script like this:

 
<script type='module' src='main.mjs'></script>

thatThat worked for me.

use filename with .mjs except .js in script like this:

 

that worked for me

Use a filename with extension .mjs instead of .js in a script like this:

<script type='module' src='main.mjs'></script>

That worked for me.

Source Link

use filename with .mjs except .js in script like this:

that worked for me