You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TT-025: Node SDK can't be loaded with CommonJS require() (ERR_PACKAGE_PATH_NOT_EXPORTED; exports has only an import condition) #856
Actual:Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in .../@telemetry-tracker/node/package.json. The package exports is {".":{"import":"./dist/index.js","types":"./dist/index.d.ts"}}, so there's no require/default condition and CommonJS apps (plain Node scripts, CJS Express apps, older tooling) can't load the SDK at all. ESM import works and exposes flush, trackError, etc.
Expected: Either ship a CJS build ("require" condition, or a "default" condition that Node can load), or declare ESM-only explicitly (README/docs plus a clear error message) so #854's docs can point to the supported path (e.g. await import()).
Acceptance:require('@telemetry-tracker/node') works on the published package, or ESM-only is documented and #854 gives a verified CJS workaround.
Activity