Service Worker registration failed (Status code: 15) and Popup malfunction due to uncompiled TypeScript
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- javascript, typescript
- Área
- build-system, frontend
Línea de trabajo
The report names background.js, popup.ts and popup.html, where the popup loads popup.js that does not exist in the source. Start by checking whether the repo has any TypeScript build step or config, and whether popup.html points at a compiled file. The maintainer has not chosen between shipping compiled JS and adding a build script, so confirm that direction before editing. Done means the extension loads, the service worker registers and the popup works in Chrome.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Description I encountered an issue where the Service Worker failed to register with Status code: 15. Additionally, the popup was not functioning correctly.
Root Cause Upon investigation, I found that the source files (
background.js
and
popup.ts
referenced as
popup.js
) contain TypeScript syntax (interfaces, type annotations).
background.js
: Contains interface definitions and type annotations. Browsers cannot execute this directly, leading to a SyntaxError and Service Worker failure.
popup.html
: References
popup.js
, but only
popup.ts
exists in the source, which also contains TypeScript.
Fix I was able to resolve these issues by transpiling the TypeScript code into valid JavaScript (removing types and interfaces).
Environment
OS: Windows
Browser: Chrome
Suggestions It seems the project is intended to be built with TypeScript, but the distributed/source files are mixed. It would be helpful to either:
Distribute compiled
.js
files.
Or include a build script/instruction to generate the JS files from TS.
GoodDay!
日本から、愛をこめて
P.S:すでに対応済みだったらごめんなさい。何かあったら教えてください。怒らんといてください、16なんで愛嬌的な感じで許してください、何でもしますから!(何でもするとは言っていない)
- Lenguaje dominante
- TypeScript
- Estrellas
- 58
- Forks
- 5
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de maxrave-dev/utils
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 45/100
maxrave-dev/utils#11 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 12/100
maxrave-dev/utils#10 · 2 reacciones ·
-
Login FailedAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 15/100
maxrave-dev/utils#9 ·
-
Extract cookies don't worksAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 25/100
maxrave-dev/utils#7 · 6 comentarios · 1 reacción ·
-
Login FailedAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 18/100
maxrave-dev/utils#6 ·
Todos los issues de maxrave-dev/utils
Issues similares
-
agentic-workflows
Dificultad 1/5 Menos de una hora Aptitud para principiantes 75/100
opencollective/opencollective-frontend#12789 ·
Los mantenedores suelen responder en 1 día
-
Web download page shows a file as Completed when its download from S3 fails with an error responseAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
awslabs/visual-asset-management-system#2097 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
openwatersio/slackwater#591 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
compiler-explorer/compiler-explorer#9738 ·
Los mantenedores suelen responder en 2 días