ES6 modules via script tag has the error “The requested module does not provide an export named 'default' ”
问题 I tried to import a module via script tag, <script type="module"> import phonebar from "https://unpkg.com/jssip-emicnet/dist/phonebar.js" I got the error The requested module 'https://unpkg.com/jssip-emicnet/dist/phonebar.js' does not provide an export named 'default' I changed it to so-called "Import a module for its side effects only" and it worked as expected. <script type="module"> import "https://unpkg.com/jssip-emicnet/dist/phonebar.js" MDN said import '/modules/my-module.js'; is to