openapi-nodejs-sdk icon indicating copy to clipboard operation
openapi-nodejs-sdk copied to clipboard

Missing browser compatibility layer (Next.js)

Open francescobianco opened this issue 1 year ago • 0 comments

🧠 Missing browser compatibility layer

Labels: feature, isomorphic
Framework context: Next.js (client-side calls in app/ or pages/api)

Description:
The SDK imports Node-specific modules like fs and https, making it incompatible with browser contexts (e.g., when used from Next.js client code or Remix loaders).

Expected:
Provide a separate ESM bundle or an isomorphic build compatible with both Node.js and browser environments.

Example:

import Openapi from "openapi-sdk/browser";

francescobianco avatar Nov 09 '25 14:11 francescobianco