ampproject / ampproject/worker-dom

importScripts: Failed to load worker script

Open
#992 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3.3k
Forks
154
PR merge metrics
No merged PRs in 30d

Description

When I want to import the external script from inside my worker: `importScripts('hello-world.js')` using the latest WorkerDOM 0.27.3, I get: `SyntaxError: WorkerGlobalScope.importScripts: Failed to load worker script at "hello-world.js"`. How to import an external script from my worker?

Contributor guide

Open the contributing guide

Research direction

Start with the WorkerDOM 0.27.3 worker entry point that calls importScripts('hello-world.js') and reproduce the reported loading error. Investigate how the worker resolves external scripts; done means identifying and documenting or fixing the supported way to load the script.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.