Closed mikeybinns closed 1 year ago
@mikeybinns Thanks for reporting, we've been working on a package rewrite that introduces support for both CommonJS and ESM modules. Could you give a try to the newly published version 0.13.0-beta.0
?
Hi @mikeybinns, we released improvements in version 0.13.0
, please try it out and let me know if it works.
This appears to have worked, thanks :)
When loading the package from a Remix/React project, I'm running into this error: .../node_modules/@marker.io/browser/src/index.js:5
Looks like it's trying to load your esm package with the commonjs loader (node:internal/modules/cjs/loader), which leads to an error. A potential fix for this issue would be to add
"type": "module",
to the package.json so Node knows that it's an ESM package.