Skip to content

ERR_PACKAGE_PATH_NOT_EXPORTED against @sap-cloud-sdk/connectivity@4.9.0 (deep import of connectivity/internal.js) #2206

Description

@gbrfarkas

Checklist

Describe the Bug

@sap-ai-sdk/ai-api deep-imports an internal subpath of @sap-cloud-sdk/connectivity with a .js extension:

// @sap-ai-sdk/ai-api/dist/utils/deployment-cache.js
import { Cache } from '@sap-cloud-sdk/connectivity/internal.js';

@sap-cloud-sdk/connectivity@4.9.0 (published 2026-08-24) introduced a restrictive exports map that exposes "./internal" but not "./internal.js". Since exports subpaths are matched exactly, the .js import no longer resolves and every app using the AI SDK crashes during startup:

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './internal.js' is not
defined by "exports" in .../@sap-cloud-sdk/connectivity/package.json
imported from .../@sap-ai-sdk/ai-api/dist/utils/deployment-cache.js

Steps to Reproduce

  1. Install @sap-ai-sdk/ai-api (any version, incl. 2.15.0) with @sap-cloud-sdk/connectivity@4.9.0.
  2. Load any module that reaches deployment-cache.js.
  3. Startup throws ERR_PACKAGE_PATH_NOT_EXPORTED.

Expected Behavior

The declared range (^4.8.0) should work across all permitted @sap-cloud-sdk/connectivity versions, including 4.9.0.

Screenshots

No response

Used Versions

  • Node version: 22.16.0
  • NPM version: 10.9.2
  • SAP Cloud SDK for AI version: 2.8.0

Code Examples

No response

Log File

No response

Region

US10

Affected Development Phase

Development

Impact

Impaired

Timeline

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions