Spaces:
Running
Running
Pin Pixi to 8.18.1 (fixes BatcherPipe null-geometry crash)
Browse filestiny.js floated to `pixi.js@8` (latest), which resolved to 8.19.0. Its
"Container.updateTransform honors zero scale" render change crashes the chunked
map's batcher ("Cannot read properties of null (reading 'geometry')") — only on
tiny-army (8.19.0), never on auto-battler (pinned 8.18.1). Pin to 8.18.1 so the
Space runs the exact Pixi the bundles are built/tested against.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- web/tiny.js +5 -1
web/tiny.js
CHANGED
|
@@ -3,7 +3,11 @@
|
|
| 3 |
// convention come from the SAME shared source as the auto-battler
|
| 4 |
// (src/render/spriteSheet.js → /web/sheet.js). Pixi is injected (CDN) so there's
|
| 5 |
// one Pixi instance.
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
import { mountSpritePlayground } from '/web/playground.js'
|
| 8 |
import { mountClassesSandbox } from '/web/classesSandbox.js'
|
| 9 |
import { mountEnemiesSandbox } from '/web/enemiesSandbox.js'
|
|
|
|
| 3 |
// convention come from the SAME shared source as the auto-battler
|
| 4 |
// (src/render/spriteSheet.js → /web/sheet.js). Pixi is injected (CDN) so there's
|
| 5 |
// one Pixi instance.
|
| 6 |
+
// PINNED to 8.18.1 — the exact Pixi the auto-battler app is built/tested against. Floating to
|
| 7 |
+
// `@8` (latest) pulled 8.19.0, whose "updateTransform honors zero scale" render change crashes the
|
| 8 |
+
// chunked map's batcher ("Cannot read properties of null (reading 'geometry')"). Keep in lockstep
|
| 9 |
+
// with auto-battler/package.json's pixi.js version.
|
| 10 |
+
import * as PIXI from 'https://cdn.jsdelivr.net/npm/pixi.js@8.18.1/dist/pixi.min.mjs'
|
| 11 |
import { mountSpritePlayground } from '/web/playground.js'
|
| 12 |
import { mountClassesSandbox } from '/web/classesSandbox.js'
|
| 13 |
import { mountEnemiesSandbox } from '/web/enemiesSandbox.js'
|