Skip to content

v3 fails on Cloudflare Workers due to Webpack publicPath missing #926

Closed as not planned
@vtempest

Description

@vtempest

System Info

Automatic publicPath is not supported in this browser

https://stackoverflow.com/questions/68115467/error-automatic-publicpath-is-not-supported-in-this-browser-when-i-am-running-m
Just add: output: {
publicPath: '',
...
},

"@huggingface/transformers": "^3.0.0-alpha.14",

Environment/Platform

  • Website/web-app
  • Browser extension
  • Server-side (e.g., Node.js, Deno, Bun)
  • Desktop app (e.g., Electron)
  • Other (e.g., VSCode extension)

Description

Automatic publicPath is not supported in this browser

Reproduction

import { pipeline } from "@huggingface/transformers/" in cfw

https://developers.cloudflare.com/workers/wrangler/migration/v1-to-v2/wrangler-legacy/webpack/#example-with-webpack-plugin

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions