Chart resources are injected after chart initialization
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- Medio día
- Aptitud para principiantes
- 66/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- javascript, nodejs
- Área
- backend
Línea de trabajo
The bug is in lib/export.js: addPageResources runs after the config branch that performs the straight inject, so the styledMode CSS check fires before resources load. Read the JSON config handling block and the injectedResources bookkeeping, then move the addPageResources call ahead of the strInj branch as the reporter's patch does. Done when an export with styledMode=true and highcharts >=12.5.0 no longer logs the "Missing highcharts.css file" warning and injectedResources is still cleared between exports.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
When using styledMode=true with the export server running highcharts >=12.5.0 all charts are returned with the "Missing highcharts.css file" warning, irrespective of whether it is actually missing.
After looking through some code, it seems that resources that are passed in the export request are loaded after chart initialization, which is when the warning is encountered. I am currently using the following patch to work around this issue.
--- node_modules/highcharts-export-server/lib/export.orig.js 2026-10-14 13:43:39.623022536 -0400
+++ node_modules/highcharts-export-server/lib/export.js 2026-10-14 13:39:49.803019386 -0400
@@ -202,6 +202,11 @@
// JSON config handling
log(4, '[export] Treating as config.');
+ // Keeps track of all resources added on the page with addXXXTag. etc
+ // It's VITAL that all added resources ends up here so we can clear things
+ // out when doing a new export in the same page!
+ injectedResources = await addPageResources(page, options);
+
// Need to perform straight inject
if (exportOptions.strInj) {
// Injection based configuration export
@@ -225,11 +230,6 @@
}
}
- // Keeps track of all resources added on the page with addXXXTag. etc
- // It's VITAL that all added resources ends up here so we can clear things
- // out when doing a new export in the same page!
- injectedResources = await addPageResources(page, options);
-
// Get the real chart size and set the zoom accordingly
const size = isSVG
? await page.evaluate((scale) => {
- Lenguaje dominante
- JavaScript
- Estrellas
- 368
- Forks
- 266
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Sin guía de contribución
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 highcharts/node-export-server
-
Update Puppeteer to version 25.11.0+ to allow ARM64 linux images to run node-export-serverPosiblemente ocupada @daniatic la tomó hace 11 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
highcharts/node-export-server#686 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
highcharts/node-export-server#680 · 1 comentario ·
-
How to get a response statusAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
highcharts/node-export-server#679 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
highcharts/node-export-server#678 ·
-
Not working on s390xAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 30/100
highcharts/node-export-server#676 ·
Todos los issues de highcharts/node-export-server
Issues similares
-
change request evaluating
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
sindresorhus/eslint-plugin-unicorn#3907 ·
Los mantenedores suelen responder en 1 día
-
Android bug feature/error-tracking react-native team/error-tracking
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
PostHog/posthog-js#5310 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Add Prettier and a format-check CI jobPosiblemente ocupada @ezekielnathaniel070-ai la tomó hoy. Abiertobackend frontend good first issue Stellar Wave
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
OlaGreat/starbound-realms#98 · 1 comentario ·
-
Add AudiobookshelfAbiertoapp request good first issue help wanted self-hosted app
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Secra-Solutions/Conector#15 ·
-
Complexity: See issue making label epic good first issue Issue Making: Level 1 P-Feature: Project Info and Page role: back end/devOps role: front end size: 0.25pt time sensitive
Dificultad 2/5 Menos de una hora Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día