Skip to content

NextJS + web support #293

@avaer

Description

@avaer

I understand that this library uses child_process to shell out to some functionality, but this library also duals as a client wrapper for the API, so it seems reasonable to want to include it in the frontend (which might not need any of the child_process functionality, it just wants to access the API from TS).


I see there have been other issues related to child_process, I am getting similar:

./node_modules/.pnpm/@[email protected]/node_modules/@elevenlabs/elevenlabs-js/wrapper/play.js
Module not found: Can't resolve 'child_process'

https://nextjs.org/docs/messages/module-not-found

Import trace for requested module:
./node_modules/.pnpm/@[email protected]/node_modules/@elevenlabs/elevenlabs-js/wrapper/index.js
./node_modules/.pnpm/@[email protected]/node_modules/@elevenlabs/elevenlabs-js/index.js

Is there any plan to (once again) support web environments with this library? ^2.3.0 worked previously on the web.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions