After running the commmand npm run demo.android , I get the following error:
Module has no exported member 'NativeScriptModule'
Here is the full log:
> nativescript-ngx-yourplugin@0.0.0 demo.android C:\Users\vahidnajafi\NativeScript\plugins\nativescript-ngx-plugin-seed-master
> npm run preparedemo && cd src && tns run android
> nativescript-ngx-yourplugin@0.0.0 preparedemo C:\Users\vahidnajafi\NativeScript\plugins\nativescript-ngx-plugin-seed-master
> npm run build && cd src && tns plugin remove nativescript-ngx-yourplugin && tns plugin add .. && tns install
> nativescript-ngx-yourplugin@0.0.0 build C:\Users\vahidnajafi\NativeScript\plugins\nativescript-ngx-plugin-seed-master
> tsc
nativescript-ngx-yourplugin.ts(1,10): error TS2305: Module '"C:/Users/vahidnajafi/NativeScript/plugins/nativescript-ngx-plugin-seed-master/node_modules/nativescript-angular/index"' has no exported member 'NativeScriptModule'.
node_modules/@angular/common/src/directives/ng_class.d.ts(48,34): error TS2304: Cannot find name 'Set'.
node_modules/@angular/compiler/src/aot/compiler.d.ts(44,32): error TS2304: Cannot find name 'Map'.
node_modules/@angular/compiler/src/compile_metadata.d.ts(342,20): error TS2304: Cannot find name 'Set'.
node_modules/@angular/compiler/src/compile_metadata.d.ts(344,28): error TS2304: Cannot find name 'Set'.
node_modules/@angular/compiler/src/compile_metadata.d.ts(346,15): error TS2304: Cannot find name 'Set'.
node_modules/@angular/compiler/src/compile_metadata.d.ts(348,23): error TS2304: Cannot find name 'Set'.
node_modules/@angular/compiler/src/compile_metadata.d.ts(350,17): error TS2304: Cannot find name 'Set'.
node_modules/@angular/compiler/src/compile_metadata.d.ts(352,25): error TS2304: Cannot find name 'Set'. node_modules/@angular/compiler/src/output/output_ast.d.ts(433,63): error TS2304: Cannot find name 'Set'.
node_modules/@angular/core/src/change_detection/differs/default_keyvalue_differ.d.ts(24,15): error TS2304: Cannot find name 'Map'.
node_modules/@angular/core/src/change_detection/differs/default_keyvalue_differ.d.ts(28,16): error TS2304: Cannot find name 'Map'.
node_modules/@angular/core/src/di/reflective_provider.d.ts(87,123): error TS2304: Cannot find name 'Map'.
node_modules/@angular/core/src/di/reflective_provider.d.ts(87,165): error TS2304: Cannot find name 'Map'.
node_modules/@angular/core/src/facade/lang.d.ts(12,17): error TS2304: Cannot find name 'Map'.
node_modules/@angular/core/src/facade/lang.d.ts(13,17): error TS2304: Cannot find name 'Set'.
node_modules/@angular/http/src/headers.d.ts(52,59): error TS2304: Cannot find name 'Map'.
node_modules/@angular/http/src/url_search_params.d.ts(46,16): error TS2304: Cannot find name 'Map'.
node_modules/@angular/platform-browser/src/browser/browser_adapter.d.ts(79,33): error TS2304: Cannot find name 'Map'.
node_modules/@angular/platform-browser/src/dom/dom_adapter.d.ts(97,42): error TS2304: Cannot find name 'Map'.
node_modules/@angular/platform-browser/src/dom/dom_renderer.d.ts(22,37): error TS2304: Cannot find name 'Map'.
node_modules/@angular/platform-browser/src/dom/shared_styles_host.d.ts(11,30): error TS2304: Cannot find name 'Set'. node_modules/@angular/platform-browser/src/dom/shared_styles_host.d.ts(22,30): error TS2304: Cannot find name 'Set'.
node_modules/nativescript-angular/directives/action-bar.d.ts(2,46): error TS2307: Cannot find module 'tns-core-modules/ui/action-bar'.
node_modules/nativescript-angular/directives/action-bar.d.ts(3,22): error TS2307: Cannot find module 'tns-core-modules/ui/page'.
node_modules/nativescript-angular/directives/list-view-comp.d.ts(2,41): error TS2307: Cannot find module 'tns-core-modules/ui/list-view'.
node_modules/nativescript-angular/directives/list-view-comp.d.ts(3,22): error TS2306: File 'C:/Users/vahidnajafi/NativeScript/plugins/nativescript-ngx-plugin-seed-master/node_modules/tns-core-modules/ui/core/view.d.ts' is not a module.
node_modules/nativescript-angular/directives/platform-filters.d.ts(1,24): error TS2307: Cannot find module 'tns-core-modules/platform'.
node_modules/nativescript-angular/directives/tab-view.d.ts(2,25): error TS2307: Cannot find module 'tns-core-modules/ui/tab-view'.
node_modules/nativescript-angular/dom-adapter.d.ts(2,10): error TS2305: Module '"C:/Users/vahidnajafi/NativeScript/plugins/nativescript-ngx-plugin-seed-master/node_modules/@angular/platform-browser/index"' has no exported member 'ɵDomAdapter'.
node_modules/nativescript-angular/dom-adapter.d.ts(79,34): error TS2304: Cannot find name 'Map'.
node_modules/nativescript-angular/element-registry.d.ts(1,22): error TS2306: File 'C:/Users/vahidnajafi/NativeScript/plugins/nativescript-ngx-plugin-seed-master/node_modules/tns-core-modules/ui/core/view.d.ts' is not a module. node_modules/nativescript-angular/element-registry.d.ts(11,19): error TS2304: Cannot find name 'Map'.
node_modules/nativescript-angular/element-registry.d.ts(26,19): error TS2304: Cannot find name 'Map'. node_modules/nativescript-angular/forms/value-accessors/base-value-accessor.d.ts(2,22): error TS2306: File 'C:/Users/vahidnajafi/NativeScript/plugins/nativescript-ngx-plugin-seed-master/node_modules/tns-core-modules/ui/core/view.d.ts' is not a module.
node_modules/nativescript-angular/forms/value-accessors/checked-value-accessor.d.ts(3,24): error TS2307: Cannot find module 'tns-core-modules/ui/switch'.
node_modules/nativescript-angular/forms/value-accessors/date-value-accessor.d.ts(3,28): error TS2307: Cannot find module 'tns-core-modules/ui/date-picker'. node_modules/nativescript-angular/forms/value-accessors/number-value-accessor.d.ts(3,24): error TS2307: Cannot find module 'tns-core-modules/ui/slider'. node_modules/nativescript-angular/forms/value-accessors/selectedIndex-value-accessor.d.ts(3,22): error TS2306: File 'C:/Users/vahidnajafi/NativeScript/plugins/nativescript-ngx-plugin-seed-master/node_modules/tns-core-modules/ui/core/view.d.ts' is not a module.
node_modules/nativescript-angular/forms/value-accessors/text-value-accessor.d.ts(3,22): error TS2306: File 'C:/Users/vahidnajafi/NativeScript/plugins/nativescript-ngx-plugin-seed-master/node_modules/tns-core-modules/ui/core/view.d.ts' is not a module. node_modules/nativescript-angular/forms/value-accessors/time-value-accessor.d.ts(3,28): error TS2307: Cannot find module 'tns-core-modules/ui/time-picker'. node_modules/nativescript-angular/platform-common.d.ts(7,111): error TS2305: Module '"C:/Users/vahidnajafi/NativeScript/plugins/nativescript-ngx-plugin-seed-master/node_modules/@angular/core/index"' has no exported member 'InjectionToken'. node_modules/nativescript-angular/platform-common.d.ts(7,127): error TS2305: Module '"C:/Users/vahidnajafi/NativeScript/plugins/nativescript-ngx-plugin-seed-master/node_modules/@angular/core/index"' has no exported member 'StaticProvider'. node_modules/nativescript-angular/platform-providers.d.ts(1,10): error TS2305: Module '"C:/Users/vahidnajafi/NativeScript/plugins/nativescript-ngx-plugin-seed-master/node_modules/@angular/core/index"' has no exported member 'InjectionToken'. node_modules/nativescript-angular/platform-providers.d.ts(2,23): error TS2307: Cannot find module 'tns-core-modules/ui/frame'. node_modules/nativescript-angular/platform-providers.d.ts(3,22): error TS2306: File 'C:/Users/vahidnajafi/NativeScript/plugins/nativescript-ngx-plugin-seed-master/node_modules/tns-core-modules/ui/core/view.d.ts' is not a module.
node_modules/nativescript-angular/platform-providers.d.ts(4,22): error TS2307: Cannot find module 'tns-core-modules/ui/page'.
node_modules/nativescript-angular/platform-providers.d.ts(5,24): error TS2307: Cannot find module 'tns-core-modules/platform'.
node_modules/nativescript-angular/platform.d.ts(2,23): error TS2305: Module '"C:/Users/vahidnajafi/NativeScript/plugins/nativescript-ngx-plugin-seed-master/node_modules/@angular/core/index"' has no exported member 'StaticProvider'. node_modules/nativescript-angular/renderer.d.ts(1,18): error TS2724: Module '"C:/Users/vahidnajafi/NativeScript/plugins/nativescript-ngx-plugin-seed-master/node_modules/@angular/core/index"' has no exported member 'Renderer2'. Did you mean 'Renderer'?
node_modules/nativescript-angular/renderer.d.ts(1,29): error TS2305: Module '"C:/Users/vahidnajafi/NativeScript/plugins/nativescript-ngx-plugin-seed-master/node_modules/@angular/core/index"' has no exported member 'RendererFactory2'.
node_modules/nativescript-angular/renderer.d.ts(1,47): error TS2305: Module '"C:/Users/vahidnajafi/NativeScript/plugins/nativescript-ngx-plugin-seed-master/node_modules/@angular/core/index"' has no exported member 'RendererType2'.
node_modules/nativescript-angular/renderer.d.ts(1,62): error TS2305: Module '"C:/Users/vahidnajafi/NativeScript/plugins/nativescript-ngx-plugin-seed-master/node_modules/@angular/core/index"' has no exported member 'RendererStyleFlags2'.
node_modules/nativescript-angular/renderer.d.ts(2,24): error TS2307: Cannot find module 'tns-core-modules/platform'.
node_modules/nativescript-angular/renderer.d.ts(3,22): error TS2306: File 'C:/Users/vahidnajafi/NativeScript/plugins/nativescript-ngx-plugin-seed-master/node_modules/tns-core-modules/ui/core/view.d.ts' is not a module.
node_modules/nativescript-angular/router/ns-location-strategy.d.ts(3,38): error TS2307: Cannot find module 'tns-core-modules/ui/frame'.
node_modules/nativescript-angular/router/page-router-outlet.d.ts(2,50): error TS2305: Module '"C:/Users/vahidnajafi/NativeScript/plugins/nativescript-ngx-plugin-seed-master/node_modules/@angular/router/index"' has no exported member 'ChildrenOutletContexts'. node_modules/nativescript-angular/router/page-router-outlet.d.ts(3,24): error TS2307: Cannot find module 'tns-core-modules/platform'.
node_modules/nativescript-angular/view-util.d.ts(1,22): error TS2306: File 'C:/Users/vahidnajafi/NativeScript/plugins/nativescript-ngx-plugin-seed-master/node_modules/tns-core-modules/ui/core/view.d.ts' is not a module.
node_modules/nativescript-angular/view-util.d.ts(2,29): error TS2307: Cannot find module 'tns-core-modules/ui/placeholder'.
node_modules/nativescript-angular/view-util.d.ts(4,28): error TS2306: File 'C:/Users/vahidnajafi/NativeScript/plugins/nativescript-ngx-plugin-seed-master/node_modules/tns-core-modules/ui/layouts/layout-base.d.ts' is not a module. node_modules/nativescript-angular/view-util.d.ts(6,24): error TS2307: Cannot find module 'tns-core-modules/platform'.
node_modules/rxjs/Observable.d.ts(68,60): error TS2693: 'Promise' only refers to a type, but is being used as a value here. node_modules/rxjs/Subject.d.ts(24,5): error TS2416: Property 'lift' in type 'Subject<T>' is not assignable to the same property in base type 'Observable<T>'. Type '<R>(operator: Operator<T, R>) => Observable<T>' is not assignable to type '<R>(operator: Operator<T, R>) => Observable<R>'.
Type 'Observable<T>' is not assignable to type 'Observable<R>'.
Type 'T' is not assignable to type 'R'. node_modules/rxjs/observable/dom/WebSocketSubject.d.ts(44,5): error TS2416: Property 'lift' in type 'WebSocketSubject<T>' is not assignable to the same property in base type 'AnonymousSubject<T>'. Type '<R>(operator: Operator<T, R>) => WebSocketSubject<R>' is not assignable to type '<R>(operator: Operator<T, R>) => Observable<T>'.
Type 'WebSocketSubject<R>' is not assignable to type 'Observable<T>'. Types of property 'operator' are incompatible.
Type 'Operator<any, R>' is not assignable to type 'Operator<any, T>'.
Type 'R' is not assignable to type 'T'.
node_modules/rxjs/operator/toPromise.d.ts(3,79): error TS2693: 'Promise' only refers to a type, but is being used as a value here.
node_modules/tns-core-modules/ui/core/view.d.ts(2,28): error TS2307: Cannot find module 'ui/styling'. node_modules/tns-core-modules/ui/core/view.d.ts(3,43): error TS2307: Cannot find module 'ui/core/dependency-observable'.node_modules/tns-core-modules/ui/core/view.d.ts(4,28): error TS2307: Cannot find module 'ui/core/proxy'.
node_modules/tns-core-modules/ui/core/view.d.ts(5,31): error TS2307: Cannot find module 'ui/gestures'.
node_modules/tns-core-modules/ui/core/view.d.ts(6,28): error TS2307: Cannot find module 'color'. node_modules/tns-core-modules/ui/core/view.d.ts(7,33): error TS2307: Cannot find module 'data/observable'.
node_modules/tns-core-modules/ui/core/view.d.ts(8,32): error TS2307: Cannot find module 'ui/animation'.
node_modules/tns-core-modules/ui/core/view.d.ts(9,46): error TS2307: Cannot find module 'ui/animation/keyframe-animation'.
node_modules/tns-core-modules/ui/core/view.d.ts(360,21): error TS2304: Cannot find name 'Set'.
node_modules/tns-core-modules/ui/core/view.d.ts(361,27): error TS2304: Cannot find name 'Set'. node_modules/tns-core-modules/ui/layouts/layout-base.d.ts(3,43): error TS2307: Cannot find module 'ui/core/dependency-observable'.
src/app/shared/common.ts(1,22): error TS2307: Cannot find module 'application'.
src/app/shared/common.ts(2,26): error TS2307: Cannot find module 'ui/dialogs'.
npm ERR! Windows_NT 10.0.16299
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
npm ERR! node v6.11.0
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! nativescript-ngx-yourplugin@0.0.0 build: `tsc`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the nativescript-ngx-yourplugin@0.0.0 build script 'tsc'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the nativescript-ngx-yourplugin package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! tsc
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs nativescript-ngx-yourplugin
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls nativescript-ngx-yourplugin npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\vahidnajafi\NativeScript\plugins\nativescript-ngx-plugin-seed-master\npm-debug.log
npm ERR! Windows_NT 10.0.16299
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "preparedemo"
npm ERR! node v6.11.0 npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! nativescript-ngx-yourplugin@0.0.0 preparedemo: `npm run build && cd src && tns plugin remove nativescript-ngx-yourplugin && tns plugin add .. && tns install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the nativescript-ngx-yourplugin@0.0.0 preparedemo script 'npm run build && cd src && tns plugin remove nativescript-ngx-yourplugin && tns plugin add .. && tns install'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the nativescript-ngx-yourplugin package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run build && cd src && tns plugin remove nativescript-ngx-yourplugin && tns plugin add .. && tns install
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs nativescript-ngx-yourplugin
npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls nativescript-ngx-yourplugin
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\vahidnajafi\NativeScript\plugins\nativescript-ngx-plugin-seed-master\npm-debug.log
npm ERR! Windows_NT 10.0.16299
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "demo.android"
npm ERR! node v6.11.0
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! nativescript-ngx-yourplugin@0.0.0 demo.android: `npm run preparedemo && cd src && tns run android`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the nativescript-ngx-yourplugin@0.0.0 demo.android script 'npm run preparedemo && cd src && tns run android'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the nativescript-ngx-yourplugin package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run preparedemo && cd src && tns run android
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs nativescript-ngx-yourplugin
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls nativescript-ngx-yourplugin
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\vahidnajafi\NativeScript\plugins\nativescript-ngx-plugin-seed-master\npm-debug.log
After running the commmand
npm run demo.android
, I get the following error:Here is the full log:
Any idea?