Closed Petah closed 9 months ago
Thank you for spending time reporting this issue. We've already fixed this in the master
branch of Phaser and it will be part of the next official release. You can track what's already been fixed by searching closed issues, or by looking at the Change Log.
@photonstorm I tested it out by using "phaser": "git+https://github.com/phaserjs/phaser.git#master"
in my project, but still get the error. I also don't see it mentioned here: https://github.com/phaserjs/phaser/blob/master/changelog/3.80/CHANGELOG-v3.80.md
Is there a way to test with the https://labs.phaser.io/ website using the master branch?
Oh it looks like there is some open PRs about it, but not yet merged.
Closing as a duplicate of #6675 - looking into it now. Please track on that issue.
Version
Description
When using layers and a scene ends it throws an error
Uncaught TypeError: Cannot read properties of undefined (reading 'destroy')
Example Test Code
Based on this example, just adding a stop after 1 second causes the error: https://labs.phaser.io/edit.html?src=src/game%20objects/layer/add%20sprite%20to%20layer.js&v=3.70.0
Additional Information