guansss / pixi-live2d-display

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

Uncaught TypeError: manager.on is not a function #111

Closed bingoyesbingoyes closed 10 months ago

bingoyesbingoyes commented 10 months ago

code Hello! When I tried to run the code above, it reported errors below! I have checked for days, and I really need help:( error

guansss commented 10 months ago

PixiJS Deprecation Warning: ... Deprecated since v7.0.0

You seem to be using an unsupported version. v7 and above is not yet supported.

bingoyesbingoyes commented 10 months ago

tks, but honestly I wonder how to fix it. I have tried to use the older vision (yarn add pixi.js@6.9), and it reported the same error.

bingoyesbingoyes commented 10 months ago

same and during searching for solvement. I have found (in this link ) others work with the similar problem, but he works.

guansss commented 10 months ago

There is no pixi.js@6.9, the latest 6.x version is 6.5.10.

with the similar problem

They look similar because they are both deprecation warnings... They are not similar in any other way.

bingoyesbingoyes commented 10 months ago

There is no pixi.js@6.9, the latest 6.x version is 6.5.10.

with the similar problem

They look similar because they are both deprecation warnings... They are not similar in any other way.

sorry I made a mistake, I do use 6.5.10 Screenshot 2023-08-28 150023

bingoyesbingoyes commented 10 months ago

and I woner maybe this warning is not the wrong point?

guansss commented 10 months ago

The warning is just a proof of the use of unsupported version and is not necessarily the root cause.

I just tested 6.5.10 and had no issue. Could you provide a minimal reproduction please?

bingoyesbingoyes commented 10 months ago

The warning is just a proof of the use of unsupported version and is not necessarily the root cause.

I just tested 6.5.10 and had no issue. Could you provide a minimal reproduction please?

Yes! All my project and code is here. I'm trying to add a live2d model in my quasar project. I have just started, and it's not big.

guansss commented 10 months ago

image

Seems to work for me. Could be a cache problem, maybe try deleting your node_modules, yarn.lock or something.

bingoyesbingoyes commented 10 months ago

Thank you so much! I'm such a fool that I only cleared the cache and it worked LOL