Skip to content

"Text-to-Speech WebGPU" Example Not Working #53

Open
@babycommando

Description

@babycommando

Hey, when running the example at:
https://github.com/huggingface/transformers.js-examples/tree/main/text-to-speech-webgpu

I got:

✘ [ERROR] Failed to resolve entry for package "fs". The package may have incorrect main/module/exports specified in its package.json. [plugin vite:dep-pre-bundle]

    node_modules/outetts/outetts.js/version/v1/interface.js:111:36:
      111 │             const fs = await import("fs");
          ╵                                     ~~~~

  This error came from the "onResolve" callback registered here:

    node_modules/esbuild/lib/main.js:1151:20:
      1151 │       let promise = setup({
...

12:09:02 [vite] (client) error while updating dependencies:
Error: Build failed with 1 error:
node_modules/outetts/outetts.js/version/v1/interface.js:111:36: ERROR: [plugin: vite:dep-pre-bundle] Failed to resolve entry for package "fs". The package may have incorrect main/module/exports specified in its package.json.

Seems like I'm not being lucky running TTS models on the browser :P

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