Edge only supports ES6 modules in version 79 (Jan 2020) or newer.
Since Edge releases are tied to major updates to Windows 10, it is easy to get stuck on an old version.
In general I recommend that Windows users make it a point to check Windows Update for prompts to install upgrades to the OS, but that doesn't help much from the typical developer's point of view.
If you need to support old versions of Edge, then use Webpack (or one of its rivals like rollup) to bundle your modules instead of relying on browser support for them.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…