guansss / pixi-live2d-display

A PixiJS plugin to display Live2D models of any kind.
https://guansss.github.io/pixi-live2d-display/
MIT License
870 stars 132 forks source link

Failed to load motion: TypeError: Cannot set property 'time' of undefined #16

Closed KAIYOHUGO closed 3 years ago

KAIYOHUGO commented 3 years ago

warning

index.min.js:formatted:142 [MotionManager(jianye_2)] Failed to load motion: motions/idle.motion3.json
 TypeError: Cannot set property 'time' of undefined
    at q.parse (index.min.js:formatted:3383)
    at Function.create (index.min.js:formatted:3203)
    at $.createMotion (index.min.js:formatted:3474)
    at index.min.js:formatted:584

and I try Live2D Viewer Online (WIP),and it's work!

🤔

i don't know how to fix that ,I am not good at ts,so pls help 👏🏼

guansss commented 3 years ago

Hi. This is a known bug of the official framework and has been fixed, the fix will be released soon. The reason that it works in Live2D Viewer Online is just that I've made a quick fix in that project.

KAIYOHUGO commented 3 years ago

thank u very much!