awayjs / renderer

Interface for scene and material modules
75 stars 20 forks source link

Can not recompile the core. #22

Open iY0Yi opened 10 years ago

iY0Yi commented 10 years ago

Hi,

I'm trying to recompile the core with this tutorial. http://vimeo.com/76534990 (Thank you nice tutorials:) When I recompile the core via Grunt like this tutorial, I got errors like bellow:

GoroMatsumoto:away3d-core-ts Goro$ grunt lib
Running "ts:MainJsFile" (ts) task
Compiling...
/Users/Goro/Desktop/away/away3d-core-ts/src/away/core/display/BitmapData.ts(429,9): error TS2012: Cannot convert 'Uint8Array' to 'number[]':
    Type 'Uint8Array' is missing property 'concat' from type 'number[]'.
/Users/Goro/Desktop/away/away3d-core-ts/src/away/core/display/BitmapData.ts(430,9): error TS2012: Cannot convert 'Uint8Array' to 'number[]':
    Type 'Uint8Array' is missing property 'concat' from type 'number[]'.
/Users/Goro/Desktop/away/away3d-core-ts/src/away/core/display/BitmapData.ts(459,9): error TS2012: Cannot convert 'Uint8Array' to 'number[]':
    Type 'Uint8Array' is missing property 'concat' from type 'number[]'.
/Users/Goro/Desktop/away/away3d-core-ts/src/away/core/display3D/Context3D.ts(83,22): error TS2094: The property 'width' does not exist on value of type '(x: number, y: number, width: number, height: number) => void'.
/Users/Goro/Desktop/away/away3d-core-ts/src/away/core/display3D/Context3D.ts(84,22): error TS2094: The property 'height' does not exist on value of type '(x: number, y: number, width: number, height: number) => void'.
/Users/Goro/Desktop/away/away3d-core-ts/src/away/core/display3D/Context3D.ts(645,22): error TS2094: The property 'width' does not exist on value of type '(x: number, y: number, width: number, height: number) => void'.
/Users/Goro/Desktop/away/away3d-core-ts/src/away/core/display3D/Context3D.ts(646,22): error TS2094: The property 'height' does not exist on value of type '(x: number, y: number, width: number, height: number) => void'.
/Users/Goro/Desktop/away/away3d-core-ts/src/away/utils/ByteArrayBase.ts(124,13): error TS2173: Generic type references must include all type arguments.
/Users/Goro/Desktop/away/away3d-core-ts/src/away/animators/SkeletonAnimationSet.ts(51,16): error TS2173: Generic type references must include all type arguments.
/Users/Goro/Desktop/away/away3d-core-ts/src/away/animators/SkeletonAnimationSet.ts(52,16): error TS2173: Generic type references must include all type arguments.
/Users/Goro/Desktop/away/away3d-core-ts/src/away/animators/VertexAnimationSet.ts(168,13): error TS2173: Generic type references must include all type arguments.
/Users/Goro/Desktop/away/away3d-core-ts/src/away/loaders/parsers/CubeTextureParser.ts(106,14): error TS2173: Generic type references must include all type arguments.
/Users/Goro/Desktop/away/away3d-core-ts/src/away/loaders/parsers/CubeTextureParser.ts(106,23): error TS2173: Generic type references must include all type arguments.
/Users/Goro/Desktop/away/away3d-core-ts/src/away/loaders/parsers/AWDParser.ts(173,17): error TS2173: Generic type references must include all type arguments.
/Users/Goro/Desktop/away/away3d-core-ts/src/away/loaders/parsers/AWDParser.ts(1694,28): error TS2173: Generic type references must include all type arguments.
/Users/Goro/Desktop/away/away3d-core-ts/src/away/loaders/parsers/AWDParser.ts(1745,28): error TS2173: Generic type references must include all type arguments.
/Users/Goro/Desktop/away/away3d-core-ts/src/aglsl/Parser.ts(53,17): error TS2173: Generic type references must include all type arguments.
>> Compilation failed
Warning: Task "ts:MainJsFile" failed. Use --force to continue.

I use TypeScript 0.9.5. Is there a solution or what?

karimbeyrouti commented 10 years ago

TypeScript 0.9.5 was released last friday, Away3D TypeScript need an update to work with the changes in the compiler.

iY0Yi commented 10 years ago

Thank you for your fast replying. I wanted to know the cause. I can do other tasks. Thank you!

karimbeyrouti commented 10 years ago

Hello Goro, this has now been fixed for the TypeScript 0.9.5 update.

iY0Yi commented 10 years ago

Hi Karim, Now I cloud recompile. Thank you for your fast fixing.