-
Notifications
You must be signed in to change notification settings - Fork 978
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
System Info
"@huggingface/transformers": "^3.0.0",
"@parcel/config-webextension": "^2.9.3",
"parcel": "^2.9.3",
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
The following error is returned when attempting to build the webextension:
@parcel/core: Failed to resolve '#onnxruntime-webgpu' from './node_modules/@huggingface/transformers/src/backends/onnx.js'
.../node_modules/@huggingface/transformers/src/backends/onnx.js:29:27
28 | // @ts-ignore
> 29 | import * as ONNX_WEB from '#onnxruntime-webgpu';
Overwriting the import to onnxruntime-web
fixes the issue.
Reproduction
- Create project with
parcel
,@parcel/config-webextension
, and@huggingface/transformers
. - Create basic
manifest.json
- Create a file which imports from
@huggingface/transformers
- Run
parcel build ./src/manifest.json
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working