Howdy, Stranger!

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

Please limit one question/topic per post.
Please provide the following details depending on types of question

▼ For question regarding Editor, please provide:
- Live2D Software Version: (e.g. Cubism Editor 3.1.02, Euclid Editor 1.2.02)
- OS & Version: (e.g. Windows 10, macOS HighSierra)
- PC Model: (e.g. MacBookPro 2017)
- Graphics Specifications: (e.g. GeForce GTX 950M)
- Memory: (e.g. 8GB)
- Illustration Software used: (e.g. Photoshop, ClipStudio, SAI)
- Attach screenshot or capture video to show your problem:
---------------------------
▼ For question regarding SDK, please provide:
- For us to reproduce the issue you wish to inquire about, please provide either a minimum project file which has the issue. or specific instructions on how to reproduce the issue.
- Types and version of Cubism SDK you are using.
---------------------------
▼ For question regarding Cubism Software License,
For issues related to purchasing, your order, license key, and subscription, please contact us via contact form:
https://www.live2d.com/en/contact/contact_form

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.