sealtalk/sealtalk-web

build error

Closed this issue · 5 comments

Running "clean:build" (clean) task[24m
>> 3 paths cleaned.

Running "copy:build" (copy) task[24m
Created 2 directories, copied 56 files

Running "concat:build" (concat) task[24m
File ./build/assets/js/angular-widget.min.js created.
File ./build/assets/js/other.min.js created.
File ./build/assets/css/main.css created.

Running "typescript:build" (typescript) task[24m
>> src/assets/ts/account/account.ts(28,23): error TS2339: Property 'RongIMClient' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/account/account.ts(28,49): error TS2339: Property 'RongIMClient' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/conversation/controller.ts(94,42): error TS2339: Property 'Message' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/conversation/controller.ts(98,68): error TS2339: Property 'RongIMClient' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/conversation/controller.ts(99,51): error TS2339: Property 'MessageDirection' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/conversation/controller.ts(120,33): error TS2339: Property 'TextMessage' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/conversation/controller.ts(275,52): error TS2339: Property 'ImageMessage' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/conversation/server.ts(66,59): error TS2305: Module 'RongIMLib' has no exported member 'Message'.
>> src/assets/ts/main/controller.ts(247,36): error TS2339: Property 'ConnectionStatus' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/controller.ts(251,36): error TS2339: Property 'ConnectionStatus' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/controller.ts(255,36): error TS2339: Property 'ConnectionStatus' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/controller.ts(262,36): error TS2339: Property 'ConnectionStatus' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/controller.ts(278,36): error TS2339: Property 'ConnectionStatus' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/controller.ts(296,50): error TS2305: Module 'RongIMLib' has no exported member 'Message'.
>> src/assets/ts/main/server.ts(3,1): error TS6053: File 'src/assets/lib/RongIMlib.d.ts' not found.
>> src/assets/ts/main/server.ts(339,40): error TS2339: Property 'ConversationType' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/server.ts(342,40): error TS2339: Property 'ConversationType' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/server.ts(345,40): error TS2339: Property 'ConversationType' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/server.ts(348,40): error TS2339: Property 'ConversationType' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/server.ts(371,40): error TS2339: Property 'ConversationType' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/server.ts(373,78): error TS2339: Property 'ConversationType' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/server.ts(396,40): error TS2339: Property 'ConversationType' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/server.ts(431,75): error TS2339: Property 'ConversationType' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/server.ts(435,78): error TS2339: Property 'ConversationType' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/server.ts(739,19): error TS2339: Property 'RongIMClient' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/server.ts(744,19): error TS2339: Property 'RongIMClient' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/server.ts(745,33): error TS7006: Parameter 'data' implicitly has an 'any' type.
>> src/assets/ts/main/server.ts(751,31): error TS7006: Parameter 'errorCode' implicitly has an 'any' type.
>> src/assets/ts/main/server.ts(755,36): error TS2339: Property 'ErrorCode' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/server.ts(758,36): error TS2339: Property 'ErrorCode' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/server.ts(761,36): error TS2339: Property 'ConnectionState' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/server.ts(764,36): error TS2339: Property 'ConnectionState' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/server.ts(767,36): error TS2339: Property 'ConnectionState' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/server.ts(770,36): error TS2339: Property 'ConnectionState' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/server.ts(773,36): error TS2339: Property 'ConnectionState' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/server.ts(776,36): error TS2339: Property 'ConnectionState' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/server.ts(779,36): error TS2339: Property 'ConnectionState' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/server.ts(791,26): error TS2339: Property 'RongIMClient' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/server.ts(795,19): error TS2339: Property 'RongIMClient' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/server.ts(799,19): error TS2339: Property 'RongIMClient' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/server.ts(805,19): error TS2339: Property 'RongIMClient' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/server.ts(806,33): error TS7006: Parameter 'data' implicitly has an 'any' type.
>> src/assets/ts/main/server.ts(809,31): error TS7006: Parameter 'errorCode' implicitly has an 'any' type.
>> src/assets/ts/main/server.ts(809,42): error TS7006: Parameter 'message' implicitly has an 'any' type.
>> src/assets/ts/main/server.ts(813,36): error TS2339: Property 'ErrorCode' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/server.ts(816,36): error TS2339: Property 'ErrorCode' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/server.ts(819,36): error TS2339: Property 'ErrorCode' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/server.ts(822,36): error TS2339: Property 'ErrorCode' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/server.ts(825,36): error TS2339: Property 'ErrorCode' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/server.ts(828,36): error TS2339: Property 'ErrorCode' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/server.ts(843,19): error TS2339: Property 'RongIMClient' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/server.ts(848,19): error TS2339: Property 'RongIMClient' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/server.ts(849,33): error TS7006: Parameter 'data' implicitly has an 'any' type.
>> src/assets/ts/main/server.ts(852,31): error TS7006: Parameter 'error' implicitly has an 'any' type.
>> src/assets/ts/main/server.ts(861,19): error TS2339: Property 'RongIMClient' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/server.ts(862,33): error TS7006: Parameter 'data' implicitly has an 'any' type.
>> src/assets/ts/main/server.ts(865,31): error TS7006: Parameter 'error' implicitly has an 'any' type.
>> src/assets/ts/main/server.ts(875,19): error TS2339: Property 'RongIMClient' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/server.ts(876,33): error TS7006: Parameter 'num' implicitly has an 'any' type.
>> src/assets/ts/main/server.ts(888,19): error TS2339: Property 'RongIMClient' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/server.ts(889,33): error TS7006: Parameter 'data' implicitly has an 'any' type.
>> src/assets/ts/main/server.ts(892,31): error TS7006: Parameter 'error' implicitly has an 'any' type.
>> src/assets/ts/main/server.ts(906,19): error TS2339: Property 'RongIMClient' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/server.ts(907,33): error TS7006: Parameter 'data' implicitly has an 'any' type.
>> src/assets/ts/main/server.ts(910,31): error TS7006: Parameter 'error' implicitly has an 'any' type.
>> src/assets/ts/main/server.ts(918,19): error TS2339: Property 'RongIMClient' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/server.ts(923,19): error TS2339: Property 'RongIMClient' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/server.ts(924,33): error TS7006: Parameter 'data' implicitly has an 'any' type.
>> src/assets/ts/main/server.ts(935,26): error TS2339: Property 'RongIMClient' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/server.ts(939,26): error TS2339: Property 'RongIMClient' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/server.ts(943,26): error TS2339: Property 'RongIMClient' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/server.ts(948,19): error TS2339: Property 'RongIMClient' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/server.ts(949,33): error TS7006: Parameter 'data' implicitly has an 'any' type.
>> src/assets/ts/main/server.ts(949,39): error TS7006: Parameter 'has' implicitly has an 'any' type.
>> src/assets/ts/main/server.ts(955,31): error TS7006: Parameter 'error' implicitly has an 'any' type.
>> src/assets/ts/main/server.ts(963,19): error TS2339: Property 'RongIMClient' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/server.ts(967,36): error TS2339: Property 'RongIMClient' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/server.ts(968,23): error TS2339: Property 'RongIMClient' does not exist on type 'typeof RongIMLib'.
>> src/assets/ts/main/server.ts(984,93): error TS2305: Module 'RongIMLib' has no exported member 'Message'.
>> src/assets/ts/main/server.ts(986,55): error TS2305: Module 'RongIMLib' has no exported member 'Conversation'.
>> src/assets/ts/main/server.ts(987,81): error TS2305: Module 'RongIMLib' has no exported member 'Conversation'.
>> src/assets/ts/main/server.ts(988,82): error TS2305: Module 'RongIMLib' has no exported member 'Conversation'.
>> src/assets/ts/main/server.ts(992,105): error TS2305: Module 'RongIMLib' has no exported member 'Message'.
>> src/assets/ts/model/util.ts(182,20): error TS2339: Property 'URL' does not exist on type 'Window'.
>> src/assets/ts/model/util.ts(182,33): error TS2339: Property 'URL' does not exist on type 'Window'.
>> src/assets/ts/model/util.ts(183,24): error TS2339: Property 'URL' does not exist on type 'Window'.
>> src/assets/ts/model/util.ts(183,38): error TS2339: Property 'URL' does not exist on type 'Window'.
>> src/assets/ts/model/util.ts(184,31): error TS2339: Property 'URL' does not exist on type 'Window'.
>> src/assets/ts/model/webimModel.ts(37,47): error TS2305: Module 'RongIMLib' has no exported member 'Conversation'.
>> src/assets/ts/model/webimModel.ts(136,47): error TS2305: Module 'RongIMLib' has no exported member 'Message'.
>> src/assets/ts/model/webimModel.ts(224,43): error TS2305: Module 'RongIMLib' has no exported member 'Message'.
>> src/assets/ts/model/webimModel.ts(232,45): error TS2305: Module 'RongIMLib' has no exported member 'TextMessage'.
>> src/assets/ts/model/webimModel.ts(243,45): error TS2305: Module 'RongIMLib' has no exported member 'ImageMessage'.
>> src/assets/ts/model/webimModel.ts(255,45): error TS2305: Module 'RongIMLib' has no exported member 'VoiceMessage'.
>> src/assets/ts/model/webimModel.ts(263,45): error TS2305: Module 'RongIMLib' has no exported member 'LocationMessage'.
>> src/assets/ts/model/webimModel.ts(279,46): error TS2305: Module 'RongIMLib' has no exported member 'RichContentMessage'.
>> src/assets/ts/model/webimModel.ts(288,45): error TS2305: Module 'RongIMLib' has no exported member 'ContactNotificationMessage'.
>> src/assets/ts/model/webimModel.ts(313,45): error TS2305: Module 'RongIMLib' has no exported member 'CommandNotificationMessage'.
>> src/assets/ts/model/webimModel.ts(322,46): error TS2305: Module 'RongIMLib' has no exported member 'InformationNotificationMessage'.
Warning: Task "typescript:build" failed.� Use --force to continue.

Aborted due to warnings.

mac环境下开发需修改typings目录的访问权限,否则build会报错.操作方法:右键菜单-显示简介-去掉右下角小锁-应用到包含的项目

Thanks, @yujun2013 , my env:

~$:/var/www/html/talk$ tsc --version
message TS6029: Version 1.6.0-beta
~$:/var/www/html/talk$ npm --version
2.11.3
~$:/var/www/html/talk$ node --version
v0.12.7
~$:/var/www/html/talk$ grunt --version
grunt-cli v1.2.0
grunt v0.4.5
~$:/var/www/html/talk$ uname -a
Linux yin-ubuntu 3.13.0-67-generic #110-Ubuntu SMP Fri Oct 23 13:24:41 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

I'm working on ubuntu and I tried make whole project chmod -R 0777, and got the same error above.

Not familiar with tsc, thanks for help~

@yujun2013 , sorry to tell you that, typings directory has been ignored via .gitignore file. So, I got no typings directory after clone the project. What should I do ? thanks~

一步步按照readme执行,会生成typings目录

bentz commented

已生成typeings目录,执行grunt build时,仍报错\

Running "typescript:build" (typescript) task

src/assets/ts/account/account.ts(28,23): error TS2339: Property 'RongIMClient' does not exist on type 'typeof RongIMLib'.
src/assets/ts/account/account.ts(28,49): error TS2339: Property 'RongIMClient' does not exist on type 'typeof RongIMLib'.
src/assets/ts/account/account.ts(53,95): error TS2339: Property 'toGMTString' does not exist on type 'Date'.
src/assets/ts/account/account.ts(54,101): error TS2339: Property 'toGMTString' does not exist on type 'Date'.
src/assets/ts/conversation/controller.ts(257,31): error TS2339: Property 'ReadReceiptMessage' does not exist on type 'typeof RongIMLib'.
src/assets/ts/conversation/controller.ts(257,100): error TS2339: Property 'ConversationType' does not exist on type 'typeof RongIMLib'.
src/assets/ts/conversation/controller.ts(301,42): error TS2339: Property 'Message' does not exist on type 'typeof RongIMLib'.
src/assets/ts/conversation/controller.ts(305,68): error TS2339: Property 'RongIMClient' does not exist on type 'typeof RongIMLib'.....