phaserjs / phaserjs/phaser

Reporting broken Phaser examples seems to be... broken

Open
#6,973 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

📑 Example
Dominant language
JavaScript
Stars
40.3k
Forks
7.2k
PR merge metrics
No merged PRs in 30d

Description

I was looking at some Phaser examples and I noticed a few of them weren't working (an error is thrown in the console). I tried reporting the broken ones as broken, but when I did, I kept getting a server error - POST https://phaser.io/livewire/update 500.

Here is the full stacktrace:

POST https://phaser.io/livewire/update 500 (Internal Server Error)
zo @ index.js:84
send @ pool.js:44
(anonymous) @ bus.js:83
createAndSendNewPool @ bus.js:75
(anonymous) @ bus.js:38
(anonymous) @ bus.js:137
setTimeout
_c @ bus.js:136
add @ bus.js:32
Vo @ index.js:31
(anonymous) @ $wire.js:207
Mt @ module.esm.js:525
(anonymous) @ module.esm.js:513
Tl @ module.esm.js:423
Ee @ module.esm.js:452
(anonymous) @ wire-wildcard.js:22
Ka @ debounce.js:53
a @ wire-wildcard.js:20
x-on:submit.prevent @ wire-wildcard.js:34
(anonymous) @ module.esm.js:472
Tl @ module.esm.js:423
(anonymous) @ module.esm.js:3367
o @ module.esm.js:2630
(anonymous) @ module.esm.js:2658
(anonymous) @ module.esm.js:2632Understand this errorAI

The broken examples I was looking at were:
https://phaser.io/examples/v3.85.0/camera/view/render-to-texture
https://phaser.io/examples/v3.85.0/camera/view/camera-container-ignore
https://phaser.io/examples/v3.85.0/camera/view/camera-ignore
https://phaser.io/examples/v3.85.0/camera/view/ignore-container
https://phaser.io/examples/v3.85.0/camera/view/ignore-gameobjects
https://phaser.io/examples/v3.85.0/camera/view/ignore-gameobjects-in-containers
https://phaser.io/examples/v3.85.0/camera/view/ignore-group-children

Seems like there is an issue with the Camera.ignore function, as they all use it. This error is thrown: cannot read properties of null (read 'addEventListener').

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure in the listed Phaser v3.85.0 camera examples and inspect the browser console, then trace the Camera.ignore entry point and the POST to phaser.io/livewire/update. Done means the affected examples no longer throw the null addEventListener error and reporting a broken example no longer returns HTTP 500.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
game-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.