I am trying to import
@mycrypto/eth-scan. I have used the suggested require statements as per https://observablehq.com/@observablehq/module-require-debugger.
In the case of
require('https://bundle.run/@firstname.lastname@example.org') it returns an empty object. Any ideas on how to move past this?
I think the problem is that the package has not been build for the browser. You cannot require the cjs module because it’s not Node.js, and you cannot import the ES module either (with
import('https://unpkg.com/@email@example.com/lib/es/index.js?module') for example) because various dependencies don’t publish an ES module, such as https://firstname.lastname@example.org?module.