NS3.4.0 update and Onesignal typings problem


#1

Hi,
I updated my project to NS3.4.0 and Angular 5 and nativescript-dev-webpack": "^0.9.0"
I use Typescript and use Onesignal.android.d.ts and onsignal.ios.d.ts typings files.
When I try tns build android --bundle then I get this error. I see Google 1 day but I can’t resolve this problem.
Please help me what is the problem?
Thanx Bumbella

ERROR in typings/onesignal_nativescript/onesignal.android.d.ts(3,52): error TS2339: Property 'amazon' does not exist on type 'typeof com'.
typings/onesignal_nativescript/onesignal.android.d.ts(14,47): error TS2339: Property 'amazon' does not exist on type 'typeof com'.
typings/onesignal_nativescript/onesignal.android.d.ts(15,44): error TS2314: Generic type 'Class<T>' requires 1 type argument(s).
typings/onesignal_nativescript/onesignal.android.d.ts(123,72): error TS2339: Property 'WakefulBroadcastReceiver' does not exist on type 'typeof content'.
typings/onesignal_nativescript/onesignal.android.d.ts(146,78): error TS2339: Property 'WakefulBroadcastReceiver' does not exist on type 'typeof content'.
typings/onesignal_nativescript/onesignal.android.d.ts(175,44): error TS2694: Namespace 'com' has no exported member 'google'.
typings/onesignal_nativescript/onesignal.android.d.ts(177,40): error TS2694: Namespace 'com' has no exported member 'google'.
typings/onesignal_nativescript/onesignal.android.d.ts(188,90): error TS2694: Namespace 'com' has no exported member 'google'.
typings/onesignal_nativescript/onesignal.android.d.ts(188,161): error TS2694: Namespace 'com' has no exported member 'google'.
typings/onesignal_nativescript/onesignal.android.d.ts(189,55): error TS2694: Namespace 'com' has no exported member 'google'.
typings/onesignal_nativescript/onesignal.android.d.ts(226,76): error TS2694: Namespace 'android.support.v4.app.NotificationCompat' has no exported member 'Extender'.
typings/onesignal_nativescript/onesignal.android.d.ts(256,59): error TS2694: Namespace 'android.view' has no exported member 'SearchEvent'.
typings/onesignal_nativescript/onesignal.android.d.ts(260,55): error TS2314: Generic type 'List<E>' requires 1 type argument(s).
typings/onesignal_nativescript/onesignal.android.d.ts(264,75): error TS2694: Namespace 'android.os' has no exported member 'PersistableBundle'.
typings/onesignal_nativescript/onesignal.android.d.ts(327,42): error TS2314: Generic type 'List<E>' requires 1 type argument(s).
typings/onesignal_nativescript/onesignal.android.d.ts(333,46): error TS2314: Generic type 'Enum<E>' requires 1 type argument(s).
typings/onesignal_nativescript/onesignal.android.d.ts(338,47): error TS2314: Generic type 'Class<T>' requires 1 type argument(s).
typings/onesignal_nativescript/onesignal.android.d.ts(338,81): error TS2314: Generic type 'Enum<E>' requires 1 type argument(s).
typings/onesignal_nativescript/onesignal.android.d.ts(353,45): error TS2314: Generic type 'Enum<E>' requires 1 type argument(s).
typings/onesignal_nativescript/onesignal.android.d.ts(358,47): error TS2314: Generic type 'Class<T>' requires 1 type argument(s).
typings/onesignal_nativescript/onesignal.android.d.ts(358,81): error TS2314: Generic type 'Enum<E>' requires 1 type argument(s).
typings/onesignal_nativescript/onesignal.android.d.ts(402,35): error TS2314: Generic type 'List<E>' requires 1 type argument(s).
typings/onesignal_nativescript/onesignal.android.d.ts(475,46): error TS2314: Generic type 'Collection<E>' requires 1 type argument(s).
typings/onesignal_nativescript/onesignal.android.d.ts(509,44): error TS2314: Generic type 'Enum<E>' requires 1 type argument(s).
typings/onesignal_nativescript/onesignal.android.d.ts(518,47): error TS2314: Generic type 'Class<T>' requires 1 type argument(s).
typings/onesignal_nativescript/onesignal.android.d.ts(518,81): error TS2314: Generic type 'Enum<E>' requires 1 type argument(s).
typings/onesignal_nativescript/onesignal.android.d.ts(539,57): error TS2314: Generic type 'Enum<E>' requires 1 type argument(s).
typings/onesignal_nativescript/onesignal.android.d.ts(545,47): error TS2314: Generic type 'Class<T>' requires 1 type argument(s).
typings/onesignal_nativescript/onesignal.android.d.ts(545,81): error TS2314: Generic type 'Enum<E>' requires 1 type argument(s).
typings/onesignal_nativescript/onesignal.android.d.ts(653,59): error TS2694: Namespace 'android.view' has no exported member 'SearchEvent'.
typings/onesignal_nativescript/onesignal.android.d.ts(658,55): error TS2314: Generic type 'List<E>' requires 1 type argument(s).
typings/onesignal_nativescript/onesignal.android.d.ts(662,75): error TS2694: Namespace 'android.os' has no exported member 'PersistableBundle'.
typings/onesignal_nativescript/onesignal.android.d.ts(750,58): error TS2694: Namespace 'com' has no exported member 'amazon'.
typings/onesignal_nativescript/onesignal.android.d.ts(751,55): error TS2694: Namespace 'com' has no exported member 'amazon'.
typings/onesignal_nativescript/onesignal.android.d.ts(752,62): error TS2694: Namespace 'com' has no exported member 'amazon'.
typings/onesignal_nativescript/onesignal.android.d.ts(753,55): error TS2694: Namespace 'com' has no exported member 'amazon'.
typings/onesignal_nativescript/onesignal.android.d.ts(754,51): error TS2694: Namespace 'com' has no exported member 'amazon'.
typings/onesignal_nativescript/onesignal.android.d.ts(769,73): error TS2339: Property 'WakefulBroadcastReceiver' does not exist on type 'typeof content'.
typings/onesignal_nativescript/onesignal.android.d.ts(781,47): error TS2314: Generic type 'List<E>' requires 1 type argument(s).
typings/onesignal_nativescript/onesignal.android.d.ts(827,51): error TS2314: Generic type 'List<E>' requires 1 type argument(s).
typings/onesignal_nativescript/onesignal.android.d.ts(845,51): error TS2314: Generic type 'List<E>' requires 1 type argument(s).
typings/onesignal_nativescript/onesignal.android.d.ts(859,51): error TS2314: Generic type 'List<E>' requires 1 type argument(s).
typings/onesignal_nativescript/onesignal.android.d.ts(873,51): error TS2314: Generic type 'List<E>' requires 1 type argument(s).
typings/onesignal_nativescript/onesignal.android.d.ts(887,51): error TS2314: Generic type 'List<E>' requires 1 type argument(s).
typings/onesignal_nativescript/onesignal.android.d.ts(901,51): error TS2314: Generic type 'List<E>' requires 1 type argument(s).
typings/onesignal_nativescript/onesignal.android.d.ts(921,51): error TS2314: Generic type 'List<E>' requires 1 type argument(s).
typings/onesignal_nativescript/onesignal.android.d.ts(935,51): error TS2314: Generic type 'List<E>' requires 1 type argument(s).
typings/onesignal_nativescript/onesignal.android.d.ts(949,51): error TS2314: Generic type 'List<E>' requires 1 type argument(s).
typings/onesignal_nativescript/onesignal.android.d.ts(963,51): error TS2314: Generic type 'List<E>' requires 1 type argument(s).

Webpack compilation complete.
Executing webpack failed with exit code 2.

#2

Try adding,
declare var com:any;
At the top of your typings file