[email protected] bundles outdated [email protected], causing LuminanceFormat SyntaxError with current Three.js
Los mantenedores suelen responder en 4 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 65/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Stack tecnológico
- three.js, typescript
- Área
- build-system, frontend, release
Línea de trabajo
Comienza localizando la configuración de build de model-viewer-effects y su archivo .min.js distribuido; después, inspecciona cómo se empaqueta postprocessing@^6.37.1. Vuelve a compilar con postprocessing@>=6.37.3 y verifica que la configuración oficial de postprocessing usando three@^0.183.0 ya no produzca el LuminanceFormat SyntaxError; el trabajo incluye volver a publicar el paquete corregido.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
@google/[email protected] fails to load with recent Three.js versions:
Uncaught SyntaxError: The requested module 'three' does not provide an export named 'LuminanceFormat' (at model-viewer-effects.min.js:1:796)
Root cause: model-viewer-effects bundles postprocessing@^6.37.1 directly into its distributed file. LuminanceFormat was removed from Three.js's exports, and postprocessing fixed this exact issue in v6.37.3 ("Remove use of LuminanceFormat for r176 support", PR #702). Since model-viewer-effects bundles postprocessing at build time rather than resolving it live, updating the consuming project's Three.js version doesn't help — the outdated, broken code is baked into the shipped .min.js file itself.
To reproduce: Follow the official setup at https://modelviewer.dev/examples/postprocessing/ using three@^0.183.0 (or any Three.js version without LuminanceFormat) with @google/[email protected]. Confirmed reproducible with zero CDN involvement — self-hosting all three libraries locally (downloaded directly from the npm registry) produces the identical error, ruling out any CDN/caching explanation.
Ask: Please rebuild and republish model-viewer-effects against postprocessing@>=6.37.3 (or later) to pick up the fix.
- Lenguaje dominante
- TypeScript
- Estrellas
- 8.4k
- Forks
- 964
- Merge medio
- 5 d 11 h
- PR fusionados (30 d)
- 8
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la 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 google/model-viewer
-
AR not offered in DuckDuckGo iOS (`Ddg/` UA), Ecosia iOS, and Firefox for AndroidPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
google/model-viewer#5227 ·
Los mantenedores suelen responder en 4 días
-
Normal maps are inverted with KHR_materials_variantsPosiblemente ocupada @mmporong la tomó hace 12 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
google/model-viewer#5218 ·
Los mantenedores suelen responder en 4 días
-
Dificultad 3/5 1-2 días Aptitud para principiantes 57/100
google/model-viewer#5210 · 14 comentarios ·
Los mantenedores suelen responder en 4 días
-
HelpAbierto
Dificultad 2/5 Menos de una hora Aptitud para principiantes 12/100
google/model-viewer#5206 ·
Los mantenedores suelen responder en 4 días
-
Model starts sharp in Android Scene Viewer, then becomes blurry at the bottom after ~1 secondAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
google/model-viewer#5203 ·
Los mantenedores suelen responder en 4 días
Todos los issues de google/model-viewer
Issues similares
-
Release utils decode git output chunk by chunk, so a multi-byte character can turn into U+FFFDPosiblemente ocupada @goranai la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 2 días
-
Task retarget keeps the old host in task scope and adds the new host in a form that matches nothingPosiblemente ocupada @chaitanya0305 la tomó hoy. Abiertobug P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
BaaRai/ARTEX#652 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
compiler-explorer/compiler-explorer#9710 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
test(web): RevealArtwork's warm tests flake on CI because a 0 ms idle timeout means no deadlineAbiertobug effort:S P3
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
nightscout/nocturne#4556 ·
Los mantenedores suelen responder en 1 día