When using a setup that follows the ESM spec such as ESM in Node or in the browser directly, the named import in the documentation. By using a default import instead it will work as expected.
This has likely been abstracted away by "bundler magic" in webpack, but fails in these more strict environments.
When using a setup that follows the ESM spec such as ESM in Node or in the browser directly, the named import in the documentation. By using a default import instead it will work as expected.
This has likely been abstracted away by "bundler magic" in webpack, but fails in these more strict environments.
Example: JSPM Sandbox for Named Import (Errors) Example: JSPM Sandbox for Default Import (Works)