Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

If you have any questions, reports, suggestions, or requests about Live2D, please send them to this community.
※We cannot guarantee statements or answers from Live2D staff. Thank you for your understanding in advance.
 
Live2D Cubism
Cubism Products and Downloads
Cubism product manuals and tutorials
Cubism Editor Manual    Cubism Editor Tutorial    Cubism SDK Manual    Cubism SDK Tutorial
Live2D user has created a tutorial video(unoffilcial) in English. SEE ALSO.
Thank you, brian_tsui!
[Live2D Tutorial 2020] Introduction to Tools and Technical Concepts

CubismWebSamples compilation

Trying to compile https://github.com/Live2D/CubismWebSamples branch develop fail with several errors:

My env:

tsc --version
Version 3.1.2

node --version
v8.11.2

python --version
Python 2.7.12

emsdk list

The following precompiled tool packages are available for download:
clang-upstream-35928-64bit
emscripten-upstream-35928-64bit
binaryen-upstream-35928-64bit
clang-e1.37.1-64bit
clang-e1.38.11-64bit
* clang-e1.38.12-64bit INSTALLED
node-4.1.1-32bit
node-4.1.1-64bit
node-8.9.1-32bit
* node-8.9.1-64bit INSTALLED
emscripten-1.30.0
emscripten-1.34.1
emscripten-1.35.0
emscripten-1.37.1
emscripten-1.38.11
* emscripten-1.38.12 INSTALLED

Compiling https://github.com/Live2D/CubismBindings gone fine after using Cubism3SDKforNative-beta7 for linux and set uglify False

After:
npm install
cp ../CubismBindings/out/js/out/live2dcubismcore.* Core/
npm run build-framework

Got:

[tsl] ERROR in /home/macedo/w/CubismWebSamples/Framework/cubismdefaultparameterid.ts(12,12)
TS7005: Variable 'Live2DCubismFramework' implicitly has an 'any' type.

After setting "noImplicitAny": false in tsconfig.json that error is gone but several newer ones is happening:

```text

ERROR in /home/macedo/w/CubismWebSamples/Framework/live2dcubismframework.ts
./Framework/live2dcubismframework.ts
[tsl] ERROR in /home/macedo/w/CubismWebSamples/Framework/live2dcubismframework.ts(102,17)
TS2554: Expected 1 arguments, but got 5.

ERROR in /home/macedo/w/CubismWebSamples/Framework/live2dcubismframework.ts
./Framework/live2dcubismframework.ts
[tsl] ERROR in /home/macedo/w/CubismWebSamples/Framework/live2dcubismframework.ts(175,27)
TS2339: Property 'LogLevel' does not exist on type '() => void'.

ERROR in /home/macedo/w/CubismWebSamples/Framework/live2dcubismframework.ts
./Framework/live2dcubismframework.ts
[tsl] ERROR in /home/macedo/w/CubismWebSamples/Framework/live2dcubismframework.ts(220,26)
TS2339: Property 'LogLevel' does not exist on type '{}'.

ERROR in /home/macedo/w/CubismWebSamples/Framework/live2dcubismframework.ts
./Framework/live2dcubismframework.ts
[tsl] ERROR in /home/macedo/w/CubismWebSamples/Framework/live2dcubismframework.ts(220,46)
TS2339: Property 'LogLevel' does not exist on type '{}'.

ERROR in /home/macedo/w/CubismWebSamples/Framework/live2dcubismframework.ts
./Framework/live2dcubismframework.ts
[tsl] ERROR in /home/macedo/w/CubismWebSamples/Framework/live2dcubismframework.ts(221,15)
TS2322: Type '{}' is not assignable to type '() => void'.
Type '{}' provides no match for the signature '(): void'.

ERROR in /home/macedo/w/CubismWebSamples/Framework/effect/cubismeyeblink.ts
./Framework/effect/cubismeyeblink.ts
[tsl] ERROR in /home/macedo/w/CubismWebSamples/Framework/effect/cubismeyeblink.ts(22,50)
TS2339: Property 'EyeState' does not exist on type '{ (modelSetting: any): void; create(modelSetting: any): any; delete(eyeBlink: any): void; }'.

ERROR in /home/macedo/w/CubismWebSamples/Framework/effect/cubismeyeblink.ts
./Framework/effect/cubismeyeblink.ts
[tsl] ERROR in /home/macedo/w/CubismWebSamples/Framework/effect/cubismeyeblink.ts(98,37)
TS2339: Property 'EyeState' does not exist on type '{ (modelSetting: any): void; create(modelSetting: any): any; delete(eyeBlink: any): void; }'.

ERROR in /home/macedo/w/CubismWebSamples/Framework/effect/cubismeyeblink.ts
./Framework/effect/cubismeyeblink.ts
[tsl] ERROR in /home/macedo/w/CubismWebSamples/Framework/effect/cubismeyeblink.ts(102,62)
TS2339: Property 'EyeState' does not exist on type '{ (modelSetting: any): void; create(modelSetting: any): any; delete(eyeBlink: any): void; }'.

ERROR in /home/macedo/w/CubismWebSamples/Framework/effect/cubismeyeblink.ts
./Framework/effect/cubismeyeblink.ts
[tsl] ERROR in /home/macedo/w/CubismWebSamples/Framework/effect/cubismeyeblink.ts(107,37)
TS2339: Property 'EyeState' does not exist on type '{ (modelSetting: any): void; create(modelSetting: any): any; delete(eyeBlink: any): void; }'.

ERROR in /home/macedo/w/CubismWebSamples/Framework/effect/cubismeyeblink.ts
./Framework/effect/cubismeyeblink.ts
[tsl] ERROR in /home/macedo/w/CubismWebSamples/Framework/effect/cubismeyeblink.ts(110,62)
TS2339: Property 'EyeState' does not exist on type '{ (modelSetting: any): void; create(modelSetting: any): any; delete(eyeBlink: any): void; }'.

ERROR in /home/macedo/w/CubismWebSamples/Framework/effect/cubismeyeblink.ts
./Framework/effect/cubismeyeblink.ts
[tsl] ERROR in /home/macedo/w/CubismWebSamples/Framework/effect/cubismeyeblink.ts(115,37)
TS2339: Property 'EyeState' does not exist on type '{ (modelSetting: any): void; create(modelSetting: any): any; delete(eyeBlink: any): void; }'.

ERROR in /home/macedo/w/CubismWebSamples/Framework/effect/cubismeyeblink.ts
./Framework/effect/cubismeyeblink.ts
[tsl] ERROR in /home/macedo/w/CubismWebSamples/Framework/effect/cubismeyeblink.ts(119,62)
TS2339: Property 'EyeState' does not exist on type '{ (modelSetting: any): void; create(modelSetting: any): any; delete(eyeBlink: any): void; }'.

ERROR in /home/macedo/w/CubismWebSamples/Framework/effect/cubismeyeblink.ts
./Framework/effect/cubismeyeblink.ts
[tsl] ERROR in /home/macedo/w/CubismWebSamples/Framework/effect/cubismeyeblink.ts(124,37)
TS2339: Property 'EyeState' does not exist on type '{ (modelSetting: any): void; create(modelSetting: any): any; delete(eyeBlink: any): void; }'.

ERROR in /home/macedo/w/CubismWebSamples/Framework/effect/cubismeyeblink.ts
./Framework/effect/cubismeyeblink.ts
[tsl] ERROR in /home/macedo/w/CubismWebSamples/Framework/effect/cubismeyeblink.ts(126,62)
TS2339: Property 'EyeState' does not exist on type '{ (modelSetting: any): void; create(modelSetting: any): any; delete(eyeBlink: any): void; }'.

ERROR in /home/macedo/w/CubismWebSamples/Framework/effect/cubismeyeblink.ts
./Framework/effect/cubismeyeblink.ts
[tsl] ERROR in /home/macedo/w/CubismWebSamples/Framework/effect/cubismeyeblink.ts(131,37)
TS2339: Property 'EyeState' does not exist on type '{ (modelSetting: any): void; create(modelSetting: any): any; delete(eyeBlink: any): void; }'.

ERROR in /home/macedo/w/CubismWebSamples/Framework/effect/cubismeyeblink.ts
./Framework/effect/cubismeyeblink.ts
[tsl] ERROR in /home/macedo/w/CubismWebSamples/Framework/effect/cubismeyeblink.ts(133,58)
TS2339: Property 'EyeState' does not exist on type '{ (modelSetting: any): void; create(modelSetting: any): any; delete(eyeBlink: any): void; }'.

ERROR in /home/macedo/w/CubismWebSamples/Framework/effect/cubismeyeblink.ts
./Framework/effect/cubismeyeblink.ts
[tsl] ERROR in /home/macedo/w/CubismWebSamples/Framework/effect/cubismeyeblink.ts(138,33)
TS2339: Property 'CloseIfZero' does not exist on type '{ (modelSetting: any): void; create(modelSetting: any): any; delete(eyeBlink: any): void; }'.

ERROR in /home/macedo/w/CubismWebSamples/Framework/effect/cubismpose.ts
./Framework/effect/cubismpose.ts
[tsl] ERROR in /home/macedo/w/CubismWebSamples/Framework/effect/cubismpose.ts(63,51)
TS2339: Property 'PartData' does not exist on type '{ (): void; create(pose3json: any, size: any): any; delete(pose: any): void; }'.


...

```

Comments

Sign In or Register to comment.