Comments (4)
The path ../web_modules/pixi-live2d-display.js
is strange, as it would typically be node_modules/pixi-live2d-display/lib/index.js
. I'm wondering how you used this module, could you provide more information?
from pixi-live2d-display.
I'm currently using Rollup/Snowpack to bundle atm. Here's how im importing. which seems to work this way, compared to how pixi gets imported.
import { Application } from '@pixi/app';
import { Ticker, TickerPlugin } from '@pixi/ticker';
import { Renderer } from '@pixi/core';
import { InteractionManager } from '@pixi/interaction';
import Live2D_Display from 'pixi-live2d-display';
const {Live2DModel} = Live2D_Display
which actually still gets me this error
pixi-live2d-display.js:28405 Uncaught (in promise) TypeError: (intermediate value).add(...).load(...).on is not a function
pixi-live2d-display.js:28405 Uncaught (in promise) TypeError: r.on is not a function
Though I did a quick search on the second problem might needing some semicolons?
from pixi-live2d-display.
Alright, I realized that "strange" path was generated by Snowpack.
The first problem seems to be an incompatibility between Snowpack and commonjs modules, there's a related issue with possible solutions. I will consider releasing both the commonjs module and ES module in the future.
And for the second, it's because Pixi has suddenly obsoleted the EventEmitter
mixin of PIXI.Loader
in v5.3.0, which made the on()
method no longer available. The solution is either use a Pixi version lower than 5.3.0, or wait for the next release of this project, which has removed the dependency of PIXI.Loader
.
from pixi-live2d-display.
Thanks! yup. Updating PIXI to 5.2.4 worked.
from pixi-live2d-display.
Related Issues (20)
- autoInteract: false后,调用motion无效 HOT 1
- 请问live2dcubismcore.min.js是可以免费商用的吗? HOT 3
- Lip sync support for cubism 2+4! HOT 10
- manager.on is not a function HOT 2
- 部位 opacity 无法归零 HOT 1
- cubism 4 模型应用 config.expressionFadingDuration 不起作用 HOT 1
- SyntaxError: Cannot use import statement outside a module
- 报错: Uncaught (in promise) TypeError: Unknown settings format. cubism4.es.js HOT 4
- Uncaught TypeError: Cannot read properties of undefined (reading '1') HOT 4
- Failed to start up Cubism 4 framework. HOT 3
- Uncaught TypeError: manager.on is not a function HOT 10
- yarn playground后报错 [vite] Failed to load source map for /core/live2dcubismcore.js. HOT 3
- 作者您好,请问有捐赠方式吗 HOT 2
- 模型的hotkey配置怎么触发 HOT 1
- 关于项目完全离线本地化 HOT 1
- Cubism 5 support HOT 3
- 如何在框架内修改模型参数 HOT 5
- Multiple expression HOT 1
- 求教如何录制并导出live2d动画 HOT 1
- Live2d model 加了濾鏡後 model顯示不完整
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pixi-live2d-display.