argonjs / argon-app

Source code for the Argon4 AR Web Browser

Home Page:https://app.argonjs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

type error

makslevental opened this issue · comments

max@max-Inspiron-5577:~/dev_projects/argon-app$ tns build android
Executing before-prepare hook from /home/max/dev_projects/argon-app/hooks/before-prepare/nativescript-dev-typescript.js
Found peer TypeScript 2.4.2
app/components/common/argon-vuforia-provider.ts(432,52): error TS2345: Argument of type 'Promise<string | undefined>' is not assignable to parameter of type 'Promise<string>'.
  Type 'string | undefined' is not assignable to type 'string'.
    Type 'undefined' is not assignable to type 'string'.

plugins/argon-web-view/argon-web-view-common.ts(7,23): error TS2420: Class 'ArgonWebView' incorrectly implements interface 'ArgonWebView'.
  Types of property 'on' are incompatible.
    Type '{ (eventNames: string, callback: (data: EventData) => void, thisArg?: any): any; (event: "loadFin...' is not assignable to type '{ (event: "session", callback: (args: SessionEventData) => void, thisArg?: any): any; (event: str...'.
      Types of parameters 'callback' and 'callback' are incompatible.
        Types of parameters 'args' and 'data' are incompatible.
          Type 'EventData' is not assignable to type 'SessionEventData'.
            Property 'session' is missing in type 'EventData'.

TypeScript compiler failed with exit code 1

Are you using master or develop branch? We've fixed a number of issues related to the newest Nativescript in the develop branch, but have not released the app based on it (I did release a beta build in google play yesterday, actually).

different set of issues

max@max-Inspiron-5577:~/dev_projects/argon-app$ git checkout develop
Branch develop set up to track remote branch develop from origin.
Switched to a new branch 'develop'
max@max-Inspiron-5577:~/dev_projects/argon-app$ tns build android
Executing before-prepare hook from /home/max/dev_projects/argon-app/hooks/before-prepare/nativescript-dev-typescript.js
Found peer TypeScript 2.4.2
app/app.ts(1,30): error TS2307: Cannot find module 'application'.

app/app.ts(15,6): error TS2304: Cannot find name 'global'.

app/app.ts(16,5): error TS2304: Cannot find name 'global'.
app/app.ts(18,6): error TS2304: Cannot find name 'global'.

app/app.ts(20,9): error TS2304: Cannot find name 'global'.

app/app.ts(24,9): error TS2304: Cannot find name 'global'.

app/components/bookmarks-view/BookmarksView.ts(9,14): error TS2339: Property 'set' does not exist on type 'BookmarksViewModel'.

app/components/bookmarks-view/BookmarksView.ts(39,15): error TS2339: Property 'on' does not exist on type 'FilterControl'.

app/components/bookmarks-view/BookmarksView.ts(40,15): error TS2339: Property 'set' does not exist on type 'BookmarksViewModel'.
app/components/browser-view.ts(3,26): error TS2307: Cannot find module 'ui/scroll-view'.
app/components/browser-view.ts(4,21): error TS2307: Cannot find module 'color'.

app/components/browser-view.ts(5,36): error TS2307: Cannot find module 'ui/layouts/grid-layout'.
app/components/browser-view.ts(6,21): error TS2307: Cannot find module 'ui/label'.

app/components/browser-view.ts(7,22): error TS2307: Cannot find module 'ui/button'.

app/components/browser-view.ts(8,24): error TS2307: Cannot find module 'ui/progress'.

app/components/browser-view.ts(10,38): error TS2307: Cannot find module 'ui/web-view'.

app/components/browser-view.ts(16,8): error TS2307: Cannot find module 'ui/gestures'.

app/components/browser-view.ts(19,30): error TS2307: Cannot find module 'ui/layouts/absolute-layout'.
app/components/browser-view.ts(20,26): error TS2307: Cannot find module 'ui/dialogs'.

app/components/browser-view.ts(21,38): error TS2307: Cannot find module 'application-settings'.

app/components/browser-view.ts(23,30): error TS2307: Cannot find module 'application'.

app/components/browser-view.ts(92,14): error TS2339: Property 'addChild' does not exist on type 'BrowserView'.

app/components/browser-view.ts(93,14): error TS2339: Property 'backgroundColor' does not exist on type 'BrowserView'.

app/components/browser-view.ts(104,18): error TS2339: Property 'requestLayout' does not exist on type 'BrowserView'.

app/components/browser-view.ts(126,22): error TS2339: Property 'on' does not exist on type 'AppViewModel'.

app/components/browser-view.ts(141,29): error TS2339: Property 'horizontalAlignment' does not exist on type 'ArgonWebView'.

app/components/browser-view.ts(142,29): error TS2339: Property 'verticalAlignment' does not exist on type 'ArgonWebView'.
app/components/browser-view.ts(143,29): error TS2339: Property 'visibility' does not exist on type 'ArgonWebView'.

app/components/browser-view.ts(162,25): error TS2339: Property 'set' does not exist on type 'LayerDetails'.

app/components/browser-view.ts(163,25): error TS2339: Property 'set' does not exist on type 'LayerDetails'.

app/components/browser-view.ts(165,31): error TS2339: Property 'set' does not exist on type 'LayerDetails'.

app/components/browser-view.ts(185,57): error TS2339: Property 'set' does not exist on type 'LayerDetails'.

app/components/browser-view.ts(203,35): error TS2339: Property 'set' does not exist on type 'LayerDetails'.

app/components/browser-view.ts(209,35): error TS2339: Property 'set' does not exist on type 'LayerDetails'.

app/components/browser-view.ts(250,26): error TS2339: Property 'set' does not exist on type 'AppViewModel'.

app/components/browser-view.ts(274,23): error TS2339: Property 'set' does not exist on type 'LayerDetails'.
app/components/browser-view.ts(276,18): error TS2339: Property 'isLoaded' does not exist on type 'BrowserView'.

app/components/browser-view.ts(346,17): error TS2339: Property 'horizontalAlignment' does not exist on type 'ArgonWebView'.
app/components/browser-view.ts(347,17): error TS2339: Property 'verticalAlignment' does not exist on type 'ArgonWebView'.

app/components/browser-view.ts(396,18): error TS2339: Property 'android' does not exist on type 'BrowserView'.

app/components/browser-view.ts(397,18): error TS2339: Property 'android' does not exist on type 'BrowserView'.

app/components/browser-view.ts(432,28): error TS2339: Property 'getActualSize' does not exist on type 'BrowserView'.

app/components/browser-view.ts(433,29): error TS2339: Property 'getActualSize' does not exist on type 'BrowserView'.

app/components/browser-view.ts(454,21): error TS2339: Property 'android' does not exist on type 'ArgonWebView'.
app/components/browser-view.ts(484,57): error TS2339: Property 'getMeasuredHeight' does not exist on type 'BrowserView'.
app/components/browser-view.ts(510,28): error TS2339: Property 'getActualSize' does not exist on type 'BrowserView'.
app/components/browser-view.ts(511,29): error TS2339: Property 'getActualSize' does not exist on type 'BrowserView'.
app/components/browser-view.ts(546,44): error TS2339: Property 'ios' does not exist on type 'ArgonWebView'.
app/components/browser-view.ts(547,27): error TS2339: Property 'ios' does not exist on type 'ArgonWebView'.

app/components/browser-view.ts(548,51): error TS2339: Property 'android' does not exist on type 'ArgonWebView'.
app/components/browser-view.ts(549,27): error TS2339: Property 'android' does not exist on type 'ArgonWebView'.
app/components/browser-view.ts(629,48): error TS2339: Property 'ios' does not exist on type 'ArgonWebView'.

app/components/browser-view.ts(630,31): error TS2339: Property 'ios' does not exist on type 'ArgonWebView'.
app/components/browser-view.ts(631,55): error TS2339: Property 'android' does not exist on type 'ArgonWebView'.
app/components/browser-view.ts(632,31): error TS2339: Property 'android' does not exist on type 'ArgonWebView'.

app/components/browser-view.ts(699,40): error TS2339: Property 'set' does not exist on type 'LayerDetails'.
app/components/browser-view.ts(700,40): error TS2339: Property 'set' does not exist on type 'LayerDetails'.

app/components/browser-view.ts(701,40): error TS2339: Property 'set' does not exist on type 'LayerDetails'.
app/components/browser-view.ts(706,44): error TS2339: Property 'reload' does not exist on type 'ArgonWebView'.

app/components/browser-view.ts(708,48): error TS2339: Property 'src' does not exist on type 'ArgonWebView'.
app/components/browser-view.ts(711,48): error TS2339: Property 'src' does not exist on type 'ArgonWebView'.
app/components/browser-view.ts(713,48): error TS2339: Property 'src' does not exist on type 'ArgonWebView'.

app/components/browser-view.ts(723,18): error TS2339: Property 'notifyPropertyChange' does not exist on type 'BrowserView'.
app/components/browser-view.ts(741,22): error TS2339: Property 'set' does not exist on type 'AppViewModel'.

app/components/common/AppViewModel.ts(194,14): error TS2339: Property 'set' does not exist on type 'AppViewModel'.

app/components/common/AppViewModel.ts(199,14): error TS2339: Property 'set' does not exist on type 'AppViewModel'.

app/components/common/AppViewModel.ts(204,14): error TS2339: Property 'set' does not exist on type 'AppViewModel'.

app/components/common/AppViewModel.ts(209,14): error TS2339: Property 'set' does not exist on type 'AppViewModel'.
app/components/common/AppViewModel.ts(214,14): error TS2339: Property 'set' does not exist on type 'AppViewModel'.

app/components/common/AppViewModel.ts(219,14): error TS2339: Property 'set' does not exist on type 'AppViewModel'.
app/components/common/AppViewModel.ts(224,14): error TS2339: Property 'set' does not exist on type 'AppViewModel'.

app/components/common/AppViewModel.ts(229,14): error TS2339: Property 'set' does not exist on type 'AppViewModel'.
app/components/common/AppViewModel.ts(234,14): error TS2339: Property 'set' does not exist on type 'AppViewModel'.
app/components/common/AppViewModel.ts(239,14): error TS2339: Property 'set' does not exist on type 'AppViewModel'.

app/components/common/AppViewModel.ts(244,14): error TS2339: Property 'set' does not exist on type 'AppViewModel'.
app/components/common/AppViewModel.ts(249,14): error TS2339: Property 'set' does not exist on type 'AppViewModel'.
app/components/common/AppViewModel.ts(254,14): error TS2339: Property 'set' does not exist on type 'AppViewModel'.

app/components/common/AppViewModel.ts(259,14): error TS2339: Property 'set' does not exist on type 'AppViewModel'.
app/components/common/AppViewModel.ts(264,14): error TS2339: Property 'set' does not exist on type 'AppViewModel'.

app/components/common/AppViewModel.ts(274,14): error TS2339: Property 'set' does not exist on type 'AppViewModel'.
app/components/common/AppViewModel.ts(279,14): error TS2339: Property 'set' does not exist on type 'AppViewModel'.
app/components/common/AppViewModel.ts(284,14): error TS2339: Property 'set' does not exist on type 'AppViewModel'.

app/components/common/AppViewModel.ts(292,18): error TS2339: Property 'set' does not exist on type 'AppViewModel'.
app/components/common/AppViewModel.ts(299,48): error TS2339: Property 'off' does not exist on type 'LayerDetails'.

app/components/common/AppViewModel.ts(300,14): error TS2339: Property 'set' does not exist on type 'AppViewModel'.
app/components/common/AppViewModel.ts(301,14): error TS2339: Property 'set' does not exist on type 'AppViewModel'.
app/components/common/AppViewModel.ts(302,14): error TS2339: Property 'set' does not exist on type 'AppViewModel'.

app/components/common/AppViewModel.ts(304,17): error TS2339: Property 'on' does not exist on type 'LayerDetails'.
app/components/common/AppViewModel.ts(309,14): error TS2339: Property 'set' does not exist on type 'AppViewModel'.

app/components/common/AppViewModel.ts(314,14): error TS2339: Property 'notify' does not exist on type 'AppViewModel'.
app/components/common/AppViewModel.ts(320,27): error TS2339: Property 'set' does not exist on type 'LayerDetails'.
app/components/common/AppViewModel.ts(321,14): error TS2339: Property 'set' does not exist on type 'AppViewModel'.

app/components/common/AppViewModel.ts(326,14): error TS2339: Property 'notify' does not exist on type 'AppViewModel'.

app/components/common/AppViewModel.ts(332,27): error TS2339: Property 'set' does not exist on type 'LayerDetails'.
app/components/common/AppViewModel.ts(333,14): error TS2339: Property 'set' does not exist on type 'AppViewModel'.

app/components/common/AppViewModel.ts(339,14): error TS2339: Property 'notifyPropertyChange' does not exist on type 'AppViewModel'.
app/components/common/AppViewModel.ts(347,14): error TS2339: Property 'set' does not exist on type 'AppViewModel'.
app/components/common/AppViewModel.ts(352,14): error TS2339: Property 'set' does not exist on type 'AppViewModel'.

app/components/common/AppViewModel.ts(356,14): error TS2339: Property 'set' does not exist on type 'AppViewModel'.
app/components/common/AppViewModel.ts(367,18): error TS2339: Property 'notifyPropertyChange' does not exist on type 'AppViewModel'.
app/components/common/AppViewModel.ts(375,18): error TS2339: Property 'notifyPropertyChange' does not exist on type 'AppViewModel'.

app/components/common/analytics.ts(2,30): error TS2307: Cannot find module 'application'.
app/components/common/analytics.ts(69,14): error TS2339: Property 'on' does not exist on type 'AppViewModel'.
app/components/common/argon-device-provider.ts(1,30): error TS2307: Cannot find module 'application'.
app/components/common/argon-device-provider.ts(4,26): error TS2307: Cannot find module 'ui/dialogs'.
app/components/common/argon-device-provider.ts(6,27): error TS2307: Cannot find module 'platform'.
app/components/common/argon-device-provider.ts(9,25): error TS2307: Cannot find module 'ui/frame'.
app/components/common/argon-device-provider.ts(36,21): error TS2304: Cannot find name 'global'.
app/components/common/argon-reality-viewers.ts(11,8): error TS2307: Cannot find module 'ui/gestures'.
app/components/common/argon-reality-viewers.ts(201,26): error TS2339: Property 'ios' does not exist on type 'ArgonWebView'.
app/components/common/argon-reality-viewers.ts(203,27): error TS2339: Property 'ios' does not exist on type 'ArgonWebView'.
app/components/common/argon-reality-viewers.ts(214,26): error TS2339: Property 'visibility' does not exist on type 'ArgonWebView'.
app/components/common/argon-reality-viewers.ts(221,21): error TS2339: Property 'src' does not exist on type 'ArgonWebView'.
app/components/common/argon-reality-viewers.ts(221,42): error TS2339: Property 'reload' does not exist on type 'ArgonWebView'.
app/components/common/argon-reality-viewers.ts(222,22): error TS2339: Property 'src' does not exist on type 'ArgonWebView'.
app/components/common/argon-vuforia-provider.ts(6,27): error TS2307: Cannot find module 'platform'.
app/components/common/argon-vuforia-provider.ts(7,30): error TS2307: Cannot find module 'ui/layouts/absolute-layout'.
app/components/common/bookmarks.ts(1,30): error TS2307: Cannot find module 'application'.
app/components/common/bookmarks.ts(2,38): error TS2307: Cannot find module 'application-settings'.
app/components/common/bookmarks.ts(169,29): error TS2339: Property 'set' does not exist on type 'BookmarkItem'.
app/components/common/permissions.ts(1,26): error TS2307: Cannot find module 'ui/dialogs'.
app/components/common/permissions.ts(3,38): error TS2307: Cannot find module 'application-settings'.
app/components/common/util.ts(2,27): error TS2307: Cannot find module 'platform'.
app/components/common/util.ts(3,21): error TS2307: Cannot find module 'color'.
app/components/common/util.ts(4,30): error TS2307: Cannot find module 'application'.
app/components/common/util.ts(9,22): error TS2304: Cannot find name 'require'.
app/components/favorites-view/FavoritesView.ts(1,30): error TS2307: Cannot find module 'application'.
app/components/favorites-view/FavoritesView.ts(4,24): error TS2307: Cannot find module 'ui/list-view'.
app/components/favorites-view/FavoritesView.ts(12,8): error TS2307: Cannot find module 'ui/gestures'.
app/components/favorites-view/FavoritesView.ts(120,15): error TS2339: Property 'on' does not exist on type 'FilterControl'.
app/components/favorites-view/FavoritesView.ts(121,15): error TS2339: Property 'set' does not exist on type 'FavoritesViewModel'.

app/components/history-view/HistoryView.ts(1,30): error TS2307: Cannot find module 'application'.

app/components/history-view/HistoryView.ts(4,24): error TS2307: Cannot find module 'ui/list-view'.
app/components/history-view/HistoryView.ts(12,8): error TS2307: Cannot find module 'ui/gestures'.
app/components/history-view/HistoryView.ts(120,15): error TS2339: Property 'on' does not exist on type 'FilterControl'.
app/components/history-view/HistoryView.ts(121,15): error TS2339: Property 'set' does not exist on type 'HistoryViewModel'.
app/components/log-view/LogView.ts(3,21): error TS2307: Cannot find module 'ui/label'.

app/components/log-view/LogView.ts(6,21): error TS2307: Cannot find module 'color'.
app/components/log-view/LogView.ts(16,18): error TS2339: Property 'on' does not exist on type 'AppViewModel'.
app/components/reality-chooser/RealityChooserView.ts(3,24): error TS2307: Cannot find module 'ui/list-view'.
app/entry-page.ts(1,30): error TS2307: Cannot find module 'ui/frame'.
app/main-page.ts(2,30): error TS2307: Cannot find module 'application'.

app/main-page.ts(4,39): error TS2307: Cannot find module 'ui/search-bar'.
app/main-page.ts(5,20): error TS2307: Cannot find module 'ui/page'.
app/main-page.ts(6,22): error TS2307: Cannot find module 'ui/button'.
app/main-page.ts(8,24): error TS2307: Cannot find module 'ui/html-view'.
app/main-page.ts(9,21): error TS2307: Cannot find module 'color'.
app/main-page.ts(12,28): error TS2307: Cannot find module 'ui/gestures'.
app/main-page.ts(22,25): error TS2304: Cannot find name 'require'.
app/main-page.ts(40,14): error TS2339: Property 'on' does not exist on type 'AppViewModel'.
app/main-page.ts(358,121): error TS2339: Property 'android' does not exist on type 'ArgonWebView'.
app/main-page.ts(359,55): error TS2339: Property 'android' does not exist on type 'ArgonWebView'.
app/main-page.ts(376,26): error TS2339: Property 'notifyPropertyChange' does not exist on type 'AppViewModel'.
app/main-page.ts(419,37): error TS2339: Property 'set' does not exist on type 'FilterControl'.
app/main-page.ts(452,22): error TS2339: Property 'on' does not exist on type 'AppViewModel'.
app/main-page.ts(471,38): error TS2339: Property 'page' does not exist on type 'BrowserView'.

app/main-page.ts(528,29): error TS2339: Property 'set' does not exist on type 'FilterControl'.
app/main-page.ts(541,43): error TS2339: Property 'reload' does not exist on type 'ArgonWebView'.
app/main-page.ts(659,37): error TS2339: Property 'set' does not exist on type 'FilterControl'.
app/main-page.ts(704,49): error TS2339: Property 'set' does not exist on type 'FilterControl'.
app/main-page.ts(723,41): error TS2339: Property 'set' does not exist on type 'FilterControl'.
plugins/argon-web-view/argon-web-view-common.ts(2,23): error TS2307: Cannot find module 'ui/web-view'.
plugins/argon-web-view/argon-web-view-common.ts(57,17): error TS2322: Type '{ eventName: string; object: this; session: SessionPort; }' is not assignable to type 'SessionEventData'.
  Object literal may only specify known properties, and 'eventName' does not exist in type 'SessionEventData'.
plugins/argon-web-view/argon-web-view-common.ts(61,18): error TS2339: Property 'notify' does not exist on type 'ArgonWebView'.
plugins/argon-web-view/argon-web-view.android.ts(2,29): error TS2307: Cannot find module 'ui/web-view'.
plugins/argon-web-view/argon-web-view.android.ts(4,26): error TS2307: Cannot find module 'ui/dialogs'.
plugins/argon-web-view/argon-web-view.android.ts(28,64): error TS2339: Property 'android' does not exist on type 'ArgonWebView'.

plugins/argon-web-view/argon-web-view.android.ts(35,23): error TS2339: Property 'id' does not exist on type 'ArgonWebView'.
plugins/argon-web-view/argon-web-view.android.ts(36,22): error TS2339: Property 'id' does not exist on type 'ArgonWebView'.
plugins/argon-web-view/argon-web-view.android.ts(41,83): error TS2339: Property 'id' does not exist on type 'ArgonWebView'.

plugins/argon-web-view/argon-web-view.android.ts(44,18): error TS2339: Property 'android' does not exist on type 'ArgonWebView'.
plugins/argon-web-view/argon-web-view.android.ts(57,43): error TS2339: Property 'id' does not exist on type 'ArgonWebView'.
plugins/argon-web-view/argon-web-view.android.ts(60,79): error TS2339: Property 'id' does not exist on type 'ArgonWebView'.

plugins/argon-web-view/argon-web-view.android.ts(63,18): error TS2339: Property 'android' does not exist on type 'ArgonWebView'.
plugins/argon-web-view/argon-web-view.android.ts(95,30): error TS2339: Property 'loadStartedEvent' does not exist on type 'typeof ArgonWebView'.
plugins/argon-web-view/argon-web-view.android.ts(100,63): error TS2339: Property 'android' does not exist on type 'ArgonWebView'.

plugins/argon-web-view/argon-web-view.android.ts(103,30): error TS2339: Property 'loadFinishedEvent' does not exist on type 'typeof ArgonWebView'.
plugins/argon-web-view/argon-web-view.android.ts(108,35): error TS2339: Property 'android' does not exist on type 'ArgonWebView'.
plugins/argon-web-view/argon-web-view.android.ts(122,63): error TS2339: Property 'android' does not exist on type 'ArgonWebView'.
plugins/argon-web-view/argon-web-view.android.ts(129,18): error TS2339: Property 'android' does not exist on type 'ArgonWebView'.
plugins/argon-web-view/argon-web-view.android.ts(133,18): error TS2339: Property 'android' does not exist on type 'ArgonWebView'.
plugins/argon-web-view/argon-web-view.android.ts(141,18): error TS2339: Property 'android' does not exist on type 'ArgonWebView'.
plugins/argon-web-view/argon-web-view.android.ts(150,14): error TS2339: Property 'android' does not exist on type 'ArgonWebView'.

plugins/argon-web-view/argon-web-view.android.ts(154,14): error TS2339: Property 'android' does not exist on type 'ArgonWebView'.
plugins/argon-web-view/argon-web-view.android.ts(158,60): error TS2339: Property 'android' does not exist on type 'ArgonWebView'.
plugins/argon-web-view/argon-web-view.ios.ts(3,30): error TS2307: Cannot find module 'ui/web-view'.

plugins/argon-web-view/argon-web-view.ios.ts(6,26): error TS2307: Cannot find module 'ui/dialogs'.
plugins/argon-web-view/argon-web-view.ios.ts(113,14): error TS2339: Property 'nativeView' does not exist on type 'ArgonWebView'.
plugins/argon-web-view/argon-web-view.ios.ts(115,87): error TS2304: Cannot find name 'WeakRef'.
plugins/argon-web-view/argon-web-view.ios.ts(162,15): error TS2339: Property 'onLoaded' does not exist on type 'ArgonWebView'.
plugins/argon-web-view/argon-web-view.ios.ts(168,15): error TS2339: Property 'onUnloaded' does not exist on type 'ArgonWebView'.

plugins/argon-web-view/argon-web-view.ios.ts(178,20): error TS2304: Cannot find name 'WeakRef'.
plugins/argon-web-view/argon-web-view.ios.ts(180,39): error TS2304: Cannot find name 'WeakRef'.

plugins/nativescript-vuforia/vuforia-common.ts(1,1): error TS2304: Cannot find name 'require'.

plugins/nativescript-vuforia/vuforia.android.ts(5,30): error TS2307: Cannot find module 'application'.
plugins/nativescript-vuforia/vuforia.android.ts(6,30): error TS2307: Cannot find module 'ui/placeholder'.
plugins/nativescript-vuforia/vuforia.android.ts(7,26): error TS2307: Cannot find module 'ui/layouts/grid-layout'.

plugins/nativescript-vuforia/vuforia.android.ts(11,1): error TS2304: Cannot find name 'global'.
plugins/nativescript-vuforia/vuforia.android.ts(11,28): error TS2304: Cannot find name 'exports'.

plugins/nativescript-vuforia/vuforia.ios.ts(5,30): error TS2307: Cannot find module 'application'.
plugins/nativescript-vuforia/vuforia.ios.ts(6,30): error TS2307: Cannot find module 'ui/placeholder'.

plugins/nativescript-vuforia/vuforia.ios.ts(8,1): error TS2304: Cannot find name 'global'.
plugins/nativescript-vuforia/vuforia.ios.ts(8,28): error TS2304: Cannot find name 'exports'.

TypeScript compiler failed with exit code 1

When you switch branches, you'll need to delete node_module and platforms, and rerun from mom install; the packages and dependencies are different in package.json.

what version of node are you compiling against? i'm on 8.2.1

npm ERR! code E404
npm ERR! 404 Not Found: nativescript-dev-android@latest

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/max/.npm/_logs/2017-08-06T12_51_07_475Z-debug.log
Command npm install nativescript-dev-android --save-dev failed with exit code 1
# install

┌───────────────────────────────┬──────────────────────────┐
│ Usage                         │ Synopsis                 │
│ Install all dependencies      │ $ tns install [--path]   │
│ Install a selected npm module │ $ tns install <Module>   │
│ Enable TypeScript support     │ $ tns install typescript │
└───────────────────────────────┴──────────────────────────┘

Installs all dependencies described in a valid package.json or installs a selected NativeScript development module as a dev dependency.

### Options

    * --path - Specifies the directory which contains the package.json file, if different from the current directory.

### Arguments

    * <Module> - Specifies a NativeScript development module by path to a local directory containing a valid npm module or by name in the npm registry.

max@max-Inspiron-5577:~/dev_projects/argon-app$ npm install nativescript-dev-android --save-dev
npm ERR! code E404
npm ERR! 404 Not Found: nativescript-dev-android@latest

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/max/.npm/_logs/2017-08-06T12_51_11_469Z-debug.log
max@max-Inspiron-5577:~/dev_projects/argon-app$ 

I don't think we've gotten it working with new node; there were a bunch of issues. I'm away from my computer but I'm pretty sure I'm still on 6.xx. If you look back through some (possibly closed) recent issues you'll see some discussion of this

sorry i guess i misread the error: what is nativescript-dev-android? https://www.npmjs.com/package/nativescript-dev-android is 404

After changing branches, have you removed /node_modules and /platforms before doing tns install? Also, which version of nativescript are you using?
My working versions are:

nativescript: 3.1.1
node: 6.10.3
npm: 3.10.10
max@max-Inspiron-5577:~/dev_projects/argon-app$ sudo n 6.10.3
[sudo] password for max: 

     install : node-v6.10.3
       mkdir : /usr/local/n/versions/node/6.10.3
       fetch : https://nodejs.org/dist/v6.10.3/node-v6.10.3-linux-x64.tar.gz
######################################################################## 100.0%
   installed : v6.10.3

max@max-Inspiron-5577:~/dev_projects/argon-app$ tns install android
npm ERR! Linux 4.10.0-30-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "nativescript-dev-android" "--save-dev"
npm ERR! node v6.10.3
npm ERR! npm  v3.10.10
npm ERR! code E404

npm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/nativescript-dev-android
npm ERR! 404 
npm ERR! 404  'nativescript-dev-android' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/max/dev_projects/argon-app/npm-debug.log
Command npm install nativescript-dev-android --save-dev failed with exit code 1
# install

┌───────────────────────────────┬──────────────────────────┐
│ Usage                         │ Synopsis                 │
│ Install all dependencies      │ $ tns install [--path]   │
│ Install a selected npm module │ $ tns install <Module>   │
│ Enable TypeScript support     │ $ tns install typescript │
└───────────────────────────────┴──────────────────────────┘

Installs all dependencies described in a valid package.json or installs a selected NativeScript development module as a dev dependency.

### Options

    * --path - Specifies the directory which contains the package.json file, if different from the current directory.

### Arguments

    * <Module> - Specifies a NativeScript development module by path to a local directory containing a valid npm module or by name in the npm registry.

max@max-Inspiron-5577:~/dev_projects/argon-app$ ls
app  CHANGELOG.md  CLA.md  CONTRIBUTING.md  hooks  LICENSE.txt  npm-debug.log  package.json  package-lock.json  plugins  README.md  references.d.ts  tsconfig.json
max@max-Inspiron-5577:~/dev_projects/argon-app$ 

You should try tns install, not tns install android.

that did the trick. thanks a lot

app/components/common/argon-vuforia-provider.ts(432,52): error TS2345: Argument of type 'Promise<string | undefined>' is not assignable to parameter of type 'Promise'.
Type 'string | undefined' is not assignable to type 'string'.
Type 'undefined' is not assignable to type 'string'.

plugins/argon-web-view/argon-web-view-common.ts(7,23): error TS2420: Class 'ArgonWebView' incorrectly implements interface 'ArgonWebView'.
Types of property 'on' are incompatible.
Type '{ (eventNames: string, callback: (data: EventData) => void, thisArg?: any): any; (event: "loadFin...' is not assignable to type '{ (event: "session", callback: (args: SessionEventData) => void, thisArg?: any): any; (event: str...'.
Types of parameters 'callback' and 'callback' are incompatible.
Types of parameters 'args' and 'data' are incompatible.
Type 'EventData' is not assignable to type 'SessionEventData'.
Property 'session' is missing in type 'EventData'.

I have the same problem what should I do? :((((((

These should have been resolved in the develop branch. Can you try that?