library · inferred from evidence
@axiomhq/js
The official Axiom JavaScript/TypeScript SDK for data ingestion and querying.
- Internal errors in @axiomhq/pino cause server to crash
The SDK did not catch network errors from ingest, so any ingestion failure (outage, expired/invalid token) became an uncaught exception that took down the process. Maintainers released new versions of @axiomhq/js and @axiomhq/pino that catc
- Unable to get @axiomhq/js working in Vite: SyntaxError: Unexpected token 'export'
What this covers: Migrating from @axiomhq/axiom-node to @axiomhq/js in a SvelteKit/Vite app. The fix that worked: The package's ESM build used `export *` re-exports that Vite's SSR module runner could not parse.
- @axiomhq/react does not work with vite: Uncaught ReferenceError: process is not defined
@axiomhq/react does not work with vite: Uncaught ReferenceError: process is not defined. The SDK read process.env directly, which does not exist in the browser.
- Unable to get @axiomhq/js working in Vite: SyntaxError: Unexpected token 'export'
How to fix: Unable to get @axiomhq/js working in Vite: SyntaxError: Unexpected token 'export'. The verified fix from the maintainer thread, distilled into reusable steps.
- CloudFlare Workers Error: The 'cache' field on 'RequestInitializerDict' is not implemented (axiom.flush)
What this covers: Calling axiom.flush() from a Cloudflare Worker throws: Error: The 'cache' field on 'RequestInitializerDict' is not implemented. The fix that worked: The SDK's fetch client sent `cache: 'no-cache'` on ingestion requests, a