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
Browser direct import fails on unresolved #x509-transport-state specifier #2494
package.json#imports maps this specifier for Node and supporting bundlers, but a browser loading the built openai/index.mjs directly does not resolve package import maps. Chrome reports:
Failed to resolve module specifier #x509-transport-state. Relative references must start with either /, ./, or ../.
This leaves ecosystem-tests/browser-direct-import at Running tests... before any API request.
The regression is also visible in the current main push CI at 6f6411e0 / v7.7.0:
Run pnpm install --frozen-lockfile and pnpm build.
Expose the built package under ecosystem-tests/browser-direct-import/public/node_modules/openai, as the existing ecosystem harness does.
Serve ecosystem-tests/browser-direct-import/public and open index.html in Chrome.
Observe the module-resolution error before any API request.
A static confirmation after the build is:
rg -n '#x509-transport-state' dist/client.mjs
which currently reports the unresolved import in dist/client.mjs.
Expected behavior
The repository's native-browser direct-import ecosystem path should load the SDK root module without requiring a page-level import map. Node CJS/ESM behavior and the X.509 state-sharing invariant should remain intact.
Environment
OS: Windows 11 locally; Ubuntu GitHub Actions also reproduces the failure
Activity
mccrearydamion69-crypto commentedon Aug 27, 2026
Hi