Closed yaronlevi closed 11 months ago
Also, if I try this import (without brackets) I get this error:
Currently, @axiomhq/js
is unusable via ESM.
The following changes in packages/js/package.json
would fix this:
"type": "module"
"default": "./dist/cjs/index.js"
to "default": "./dist/esm/index.js"
That's how package.json
for the pino
and winston
packages are configured. Is there any reason not to do the same for the js
package?
Hi we have a released a new version that fixes this build issue. It's still rc
but maybe you could give it a try.
should be fixed, feel free to open again if you are still facing the same issue.
Following the official docs and getting this error:
Any idea what might cause this?