You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Parcel fails to build.
Error: "@parcel/core: Failed to resolve '#onnxruntime-webgpu' from './node_modules/@huggingface/transformers/src/backends/onnx.js'"
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).
🐛 bug report
Parcel fails to build with Transformers.js v3.
🎛 Configuration (.babelrc, package.json, cli command)
See all details in Bug repro repository.
npm run dev
🤔 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:
getModelJSON
fails with a bundler (see reproduction) huggingface/transformers.js#366 (comment)🔦 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
The text was updated successfully, but these errors were encountered: