2017-10-04 122 views
1

我目前有一個iOS應用程序出現問題,我正在使用原生腳本和角度進行開發。我最近更新的Xcode到9版本,並沒有在Xcode乾淨的工作爲我的項目,然後將問題發生的,現在當我嘗試執行TNS運行的iOS這裏輸出:Nativescript問題:泛型類型'Promise <T, R>'需要2個類型參數

tns run ios 
Searching for devices... 
Executing before-liveSync hook from /Users/onols/Desktop/ClubiesApp/hooks/before-liveSync/nativescript-angular-sync.js 
Executing before-prepare hook from /Users/onols/Desktop/ClubiesApp/hooks/before-prepare/nativescript-dev-typescript.js 
Found peer TypeScript 2.4.2 
app/tns_modules/@angular/animations/browser/src/render/animation_engine_next.d.ts(26,26): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 

app/tns_modules/@angular/animations/browser/src/render/transition_animation_engine.d.ts(104,26): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
... 
node_modules/nativescript-plugin-firebase/firebase.d.ts(703,48): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/nativescript-plugin-firebase/firebase.d.ts(705,62): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/nativescript-plugin-firebase/firebase.d.ts(707,58): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/nativescript-plugin-firebase/firebase.d.ts(760,60): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/nativescript-plugin-firebase/firebase.d.ts(762,29): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/nativescript-plugin-firebase/firebase.d.ts(766,47): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/nativescript-plugin-firebase/firebase.d.ts(768,65): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/nativescript-plugin-firebase/firebase.d.ts(770,60): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/nativescript-plugin-firebase/firebase.d.ts(772,27): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/nativescript-plugin-firebase/firebase.d.ts(774,56): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/nativescript-plugin-firebase/firebase.d.ts(776,42): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/nativescript-plugin-firebase/firebase.d.ts(778,57): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/nativescript-plugin-firebase/firebase.d.ts(780,31): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/nativescript-plugin-firebase/firebase.d.ts(782,63): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/nativescript-plugin-firebase/firebase.d.ts(784,63): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/nativescript-plugin-firebase/firebase.d.ts(786,65): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/nativescript-plugin-firebase/firebase.d.ts(794,35): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/nativescript-plugin-firebase/firebase.d.ts(797,91): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/nativescript-plugin-firebase/firebase.d.ts(799,94): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/nativescript-plugin-firebase/firebase.d.ts(801,40): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/nativescript-plugin-firebase/firebase.d.ts(804,97): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/nativescript-plugin-firebase/firebase.d.ts(807,67): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/nativescript-plugin-firebase/firebase.d.ts(810,57): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/nativescript-plugin-firebase/firebase.d.ts(812,61): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/nativescript-plugin-firebase/firebase.d.ts(814,65): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/nativescript-plugin-firebase/firebase.d.ts(816,57): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/nativescript-plugin-firebase/firebase.d.ts(818,46): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/nativescript-plugin-firebase/firebase.d.ts(820,50): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/nativescript-plugin-firebase/firebase.d.ts(823,61): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/nativescript-toast/index.d.ts(8,25): error TS2300: Duplicate identifier ''long''. 
node_modules/rxjs/Observable.d.ts(58,70): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/rxjs/operator/toPromise.d.ts(2,60): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/rxjs/operator/toPromise.d.ts(3,89): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/tns-core-modules/file-system/file-system.d.ts(35,15): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/tns-core-modules/file-system/file-system.d.ts(46,30): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/tns-core-modules/file-system/file-system.d.ts(85,34): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/tns-core-modules/file-system/file-system.d.ts(105,52): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/tns-core-modules/file-system/file-system.d.ts(154,14): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/tns-core-modules/file-system/file-system.d.ts(177,20): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/tns-core-modules/file-system/file-system.d.ts(183,53): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/tns-core-modules/tns-core-modules.d.ts(14,18): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/tns-core-modules/tns-core-modules.d.ts(19,58): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/tns-core-modules/ui/animation/animation.d.ts(122,32): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/tns-core-modules/ui/animation/keyframe-animation.d.ts(101,34): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/tns-core-modules/ui/dialogs/dialogs.d.ts(30,60): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/tns-core-modules/ui/dialogs/dialogs.d.ts(36,47): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 

node_modules/tns-core-modules/ui/dialogs/dialogs.d.ts(42,43): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/tns-core-modules/ui/dialogs/dialogs.d.ts(48,51): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/tns-core-modules/ui/dialogs/dialogs.d.ts(55,64): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/tns-core-modules/ui/dialogs/dialogs.d.ts(61,49): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/tns-core-modules/ui/dialogs/dialogs.d.ts(69,79): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/tns-core-modules/ui/dialogs/dialogs.d.ts(75,47): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/tns-core-modules/ui/dialogs/dialogs.d.ts(83,92): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/tns-core-modules/ui/dialogs/dialogs.d.ts(89,49): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 

node_modules/typescript/lib/lib.dom.d.ts(1354,14): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(1374,124): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(1375,15): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(1381,16): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(1540,32): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(1541,38): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(1542,64): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(1544,63): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(1546,52): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(1555,32): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(1556,29): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(1558,63): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(1559,30): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(5788,13): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(5789,48): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(7337,56): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(7397,51): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(7406,22): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(7410,14): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(7411,59): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(7412,30): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(7413,15): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(7414,28): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(7436,24): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(7576,59): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(7709,52): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(7770,99): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(7771,103): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(8251,109): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(8411,67): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(8482,23): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(8483,35): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(8598,14): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(8599,13): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(8610,19): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(8626,41): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(8952,24): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(8953,61): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(8954,55): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(8967,20): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(9031,15): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(9041,15): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(9042,13): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 

node_modules/typescript/lib/lib.dom.d.ts(9267,132): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(9270,118): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(9271,144): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(9275,136): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(9278,144): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(9279,145): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(9385,17): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(9386,19): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(9533,21): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(9534,45): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(9536,68): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(9572,69): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 

node_modules/typescript/lib/lib.dom.d.ts(9573,19): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(9574,15): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(11597,28): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(11973,72): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(11974,160): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 

node_modules/typescript/lib/lib.dom.d.ts(13312,169): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(13313,217): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(13513,20): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(13514,13): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 

node_modules/typescript/lib/lib.dom.d.ts(13515,13): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(13516,13): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(13517,17): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 

node_modules/typescript/lib/lib.dom.d.ts(13658,52): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(14655,182): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.dom.d.ts(14656,230): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 

node_modules/typescript/lib/lib.dom.d.ts(14687,65): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 

node_modules/typescript/lib/lib.es2015.iterable.d.ts(211,11): error TS2428: All declarations of 'Promise' must have identical type parameters. 

node_modules/typescript/lib/lib.es2015.iterable.d.ts(220,60): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.es2015.iterable.d.ts(228,52): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 

node_modules/typescript/lib/lib.es2015.promise.d.ts(25,25): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.es2015.promise.d.ts(33,113): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 

node_modules/typescript/lib/lib.es2015.promise.d.ts(41,284): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.es2015.promise.d.ts(49,255): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.es2015.promise.d.ts(57,229): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 

node_modules/typescript/lib/lib.es2015.promise.d.ts(65,203): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.es2015.promise.d.ts(73,177): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.es2015.promise.d.ts(81,151): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 

node_modules/typescript/lib/lib.es2015.promise.d.ts(89,125): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.es2015.promise.d.ts(97,98): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.es2015.promise.d.ts(105,72): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 

node_modules/typescript/lib/lib.es2015.promise.d.ts(113,45): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.es2015.promise.d.ts(121,284): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.es2015.promise.d.ts(129,255): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 

node_modules/typescript/lib/lib.es2015.promise.d.ts(137,229): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.es2015.promise.d.ts(145,203): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.es2015.promise.d.ts(153,177): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 

node_modules/typescript/lib/lib.es2015.promise.d.ts(161,151): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.es2015.promise.d.ts(169,125): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.es2015.promise.d.ts(177,99): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 

node_modules/typescript/lib/lib.es2015.promise.d.ts(185,73): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.es2015.promise.d.ts(193,46): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.es2015.promise.d.ts(200,26): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 

node_modules/typescript/lib/lib.es2015.promise.d.ts(207,29): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.es2015.promise.d.ts(214,44): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 
node_modules/typescript/lib/lib.es2015.promise.d.ts(220,16): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 

node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts(168,11): error TS2428: All declarations of 'Promise' must have identical type parameters. 

node_modules/typescript/lib/lib.es5.d.ts(1288,11): error TS2428: All declarations of 'Promise' must have identical type parameters. 
node_modules/typescript/lib/lib.es5.d.ts(1295,211): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 

node_modules/typescript/lib/lib.es5.d.ts(1302,112): error TS2314: Generic type 'Promise<T, R>' requires 2 type argument(s). 

Unable to apply changes on device: 30b9a1b5dc6b154e1ec801e7dcf5f15d1f8636fb. Error is: TypeScript compiler failed with exit code 1. 
Building project... 
Xcode build... 
=== BUILD TARGET ClubiesApp OF PROJECT ClubiesApp WITH CONFIGURATION Debug === 
build-debug.xcconfig line 3: Unable to find included file "../plugins-debug.xcconfig" 
=== BUILD TARGET ClubiesApp OF PROJECT ClubiesApp WITH CONFIGURATION Debug === 
error: could not read data from '/Users/onols/Desktop/ClubiesApp/platforms/ios/ClubiesApp/ClubiesApp-Info.plist': The file 「ClubiesApp-Info.plist」 couldn’t be opened because there is no such file. 
** BUILD FAILED ** 

Unable to apply changes on device: 3887748A-6E73-4736-8D32-A439446C0352. Error is: Command xcodebuild failed with exit code 65. 
Executing after-watch hook from /Users/onols/Desktop/ClubiesApp/hooks/after-watch/nativescript-dev-typescript.js 

我無法找到一個解決方案這個,有人可以知道這可能來自哪裏?

在此先感謝!

回答

0

我有類似的問題。真正讓我瘋狂的是,我的應用程序在爲Android工作,然後我試圖爲iOS編譯它,然後它開始呈現TS2314錯誤,然後當我嘗試再次運行Android應用程序時,它也開始呈現同樣的錯誤。

我開始一個新項目,開始安裝依賴關係,並逐個將文件複製到新項目。

當我複製應用程序文件夾中的tns_modules文件夾時,新項目開始顯示相同的問題。

然後,我從新舊項目中刪除了tns_modules,再次運行該應用程序,並在兩者上都能正常工作。 : -/

所以我的建議是:

  1. 備份您的項目。
  2. 從./platforms文件夾中刪除Android和iOS。
  3. 從./app文件夾中刪除tns_modules。
  4. 再次運行應用程序。

如果這不起作用,你可以嘗試做同樣的事情。啓動一個空的項目,檢查它是否正確編譯Android和iOS,然後傳輸每個文件和模塊,並檢查項目何時停止工作。

+0

謝謝你的回答,並對我個人答覆的延誤表示歉意!這個特定的問題實際上來自tns_module,因爲我遵循了你的指令並解決了問題! 再次感謝您! – lvrnls

相關問題