Skip to content

Conversation

@aungKhantPaing
Copy link
Contributor

Closes #1259

I got the same error as #1259 when I tried to implement an image classification pipeline in the Chrome extension's background script. When I looked into it, it was because the of IS_WEBWORKER_ENV value being false. Current web worker detection checks only one of the three WorkerGlobalScope types. I've extended the check to also include reminding two types: ServiceWorkerGlobalScope and SharedWorkerGlobalScope.

Copy link
Collaborator

@xenova xenova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@aungKhantPaing aungKhantPaing requested a review from xenova June 26, 2025 02:37
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@xenova xenova merged commit 0188c31 into huggingface:main Jul 2, 2025
4 checks passed
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

Successfully merging this pull request may close these issues.

3.2.4 has wrong env check in transformers.web.js

3 participants