I got this on Firefox (FF58). I fixed this with:
- It is still experimental on Firefox (from v54):
You have to set to true the variable
type=moduleto your script tag where you import the js file
<script type=module src=appthatimports.js></script>
- Import files have to be prefixed (
import * from ./mylib.js
For more examples, this blog post is good.