Skip to content

Missing browser compatibility layer (Next.js) #9

@francescobianco

Description

@francescobianco

🧠 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";

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions