Home / Phaser / P13

Phaser error: 'No Aseprite data found for: ' + key — cause and fix

Calling this.anims.createFromAseprite(key), but the JSON cache has no Aseprite data for th

ID
P13
Engine
Phaser
Verification
源码原文(src/animations/AnimationManager.js:414)
Frequency
未公开

Original message (verbatim)

'No Aseprite data found for: ' + key

Placeholders such as %s / %d are kept verbatim from the engine source and are not replaced with concrete values.

Trigger

Calling this.anims.createFromAseprite(key), but the JSON cache has no Aseprite data for that key: the atlas JSON was not added to the json cache under the same key, or the two keys differ.

Typical cause

The method reads data from game.cache.json.get(key); if nothing is found it warns and returns an empty animation array.

Step-by-step fix

  1. First load the Aseprite-exported JSON with this.load.atlas(key, image, json), then call createFromAseprite with the same key.
  2. After loading, confirm the JSON has entered cache.json.

Source links

Per-entry sources and capture date are listed at /sources#P13.

Related errors

Related Phaser errors

Need an offline quick-reference checklist?

Atlas error library Pro pack: 123 error references (110 single + 13 merged) plus a quick-fix guide, $19 one-time purchase, delivered as electronic files.

View Pro pack / order

Back to the all-errors index Checkout and buy the Pro pack — $19.00