Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parcel fails to build with Transformers.js v3 #10012

Open
maudnals opened this issue Nov 18, 2024 · 0 comments
Open

Parcel fails to build with Transformers.js v3 #10012

maudnals opened this issue Nov 18, 2024 · 0 comments

Comments

@maudnals
Copy link

🐛 bug report

Parcel fails to build with Transformers.js v3.

🎛 Configuration (.babelrc, package.json, cli command)

See all details in Bug repro repository.

🤔 Expected Behavior

Parcel builds successfully.

😯 Current Behavior

Parcel fails to build.
Error: "@parcel/core: Failed to resolve '#onnxruntime-webgpu' from './node_modules/@huggingface/transformers/src/backends/onnx.js'"

See Bug repro repository.

💁 Possible Solution

Not a full solution, but a few pointers:

🔦 Context

I encountered this issue while trying to upgrade the Transformers.js version in my Parcel-bundled demo.
Transformers.js v2 worked fine with Parcel (modulo one issue, which is likely a different one - Details here).

💻 Code Sample

See Bug repro repository.

🌍 Your Environment

Software Version(s)
Parcel ^2.13.0
Node v20.15.0
npm/Yarn 10.7.0
Operating System macOS 14.7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant