I'm very interested in this solution, because nativescript-maskedinput does not allow me to compile with AoT Webpack.
CONSOLE ERROR file:///app/tns_modules/@angular/core/./bundles/core.umd.js:1091:24: ERROR Error: Uncaught (in promise): TypeError: Could not load view for: MaskedTextField.TypeError: undefined is not a constructor (evaluating 'new view_1.Property')
getViewClass@file:///app/tns_modules/nativescript-angular/element-registry.js:28:28
createView@file:///app/tns_modules/nativescript-angular/view-util.js:121:56
createElement@file:///app/tns_modules/nativescript-angular/renderer.js:103:40
createElement@file:///app/tns_modules/nativescript-angular/renderer.js:205:55
createElement@file:///app/tns_modules/@angular/core/./bundles/core.umd.js:13092:62
createElement@file:///app/tns_modules/@angular/core/./bundles/core.umd.js:9328:40
createViewNodes@file:///app/tns_modules/@angular/core/./bundles/core.umd.js:11942:57
callViewAction@file:///app/tns_modules/@angular/core/./bundles/core.umd.js:12354:28
execComponentViewsAction@file:///app/tns_modules/@angular/core/./bundles/core.umd.js:12293:27
createViewNodes@file:///app/tns_modules/@angular/core/./bundles/core.umd.js:12011:29
createRootView@file:///app/tns_modules/@angular/core/./bundles/core.umd.js:11889:20
callWithDebugContext@file:///app/tns_modules/@angular/core/./bundles/core.umd.js:13020:47
create@file:///app/tns_modules/@angular/core/./bundles/core.umd.js:9825:60
createComponent@file:///app/tns_modules/@angular/core/./bundles/core.umd.js:10025:68
loadWithFactory@file:///app/tns_modules/nativescript-angular/common/detached-loader.js:37:49
activateOnGoForward@file:///app/tns_modules/nativescript-angular/router/page-router-outlet.js:162:75
activateWith@file:///app/tns_modules/nativescript-angular/router/page-router-outlet.js:138:37
placeComponentIntoOutlet@file:///app/tns_modules/@angular/router/./bundles/router.umd.js:4515:28
activateRoutes@file:///app/tns_modules/@angular/router/./bundles/router.umd.js:4496:50
file:///app/tns_modules/@angular/router/./bundles/router.umd.js:4432:72
forEach@[native code]
activateChildRoutes@file:///app/tns_modules/@angular/router/./bundles/router.umd.js:4432:36
activate@file:///app/tns_modules/@angular/router/./bundles/router.umd.js:4406:33
file:///app/tns_modules/@angular/router/./bundles/router.umd.js:4023:30
file:///app/tns_modules/rxjs/Observable.js:107:25
__tryOrSetError@file:///app/tns_modules/rxjs/Subscriber.js:243:20
next@file:///app/tns_modules/rxjs/Subscriber.js:185:42
_next@file:///app/tns_modules/rxjs/Subscriber.js:125:30
next@file:///app/tns_modules/rxjs/Subscriber.js:89:23
_next@file:///app/tns_modules/rxjs/operator/map.js:83:30
next@file:///app/tns_modules/rxjs/Subscriber.js:89:23
notifyNext@file:///app/tns_modules/rxjs/operator/mergeMap.js:143:34
_next@file:///app/tns_modules/rxjs/InnerSubscriber.js:23:31
next@file:///app/tns_modules/rxjs/Subscriber.js:89:23
_next@file:///app/tns_modules/rxjs/operator/map.js:83:30
next@file:///app/tns_modules/rxjs/Subscriber.js:89:23
_subscribe@file:///app/tns_modules/rxjs/observable/ScalarObservable.js:49:28
_trySubscribe@file:///app/tns_modules/rxjs/Observable.js:57:35
subscribe@file:///app/tns_modules/rxjs/Observable.js:45:40
subscribe@file:///app/tns_modules/rxjs/Observable.js:42:26
_innerSub@file:///app/tns_modules/rxjs/operator/mergeMap.js:130:55
_tryNext@file:///app/tns_modules/rxjs/operator/mergeMap.js:127:23
_next@file:///app/tns_modules/rxjs/operator/mergeMap.js:110:26
next@file:///app/tns_modules/rxjs/Subscriber.js:89:23
notifyNext@file:///app/tns_modules/rxjs/operator/mergeMap.js:143:34
_next@file:///app/tns_modules/rxjs/InnerSubscriber.js:23:31
next@file:///app/tns_modules/rxjs/Subscriber.js:89:23
_next@file:///app/tns_modules/rxjs/operator/map.js:83:30
next@file:///app/tns_modules/rxjs/Subscriber.js:89:23
_complete@file:///app/tns_modules/rxjs/operator/reduce.js:119:34
complete@file:///app/tns_modules/rxjs/Subscriber.js:114:27
_complete@file:///app/tns_modules/rxjs/operator/mergeMap.js:135:38
complete@file:///app/tns_modules/rxjs/Subscriber.js:114:27
_subscribe@file:///app/tns_modules/rxjs/observable/ArrayObservable.js:116:32
_trySubscribe@file:///app/tns_modules/rxjs/Observable.js:57:35
subscribe@file:///app/tns_modules/rxjs/Observable.js:45:40
subscribe@file:///app/tns_modules/rxjs/Observable.js:42:26
subscribe@file:///app/tns_modules/rxjs/Observable.js:42:26
subscribe@file:///app/tns_modules/rxjs/Observable.js:42:26
_innerSub@file:///app/tns_modules/rxjs/operator/mergeMap.js:130:55
_tryNext@file:///app/tns_modules/rxjs/operator/mergeMap.js:127:23
_next@file:///app/tns_modules/rxjs/operator/mergeMap.js:110:26
next@file:///app/tns_modules/rxjs/Subscriber.js:89:23
notifyNext@file:///app/tns_modules/rxjs/operator/mergeMap.js:143:34
_next@file:///app/tns_modules/rxjs/InnerSubscriber.js:23:31
next@file:///app/tns_modules/rxjs/Subscriber.js:89:23
_next@file:///app/tns_modules/rxjs/operator/map.js:83:30
next@file:///app/tns_modules/rxjs/Subscriber.js:89:23
notifyNext@file:///app/tns_modules/rxjs/operator/mergeMap.js:143:34
_next@file:///app/tns_modules/rxjs/InnerSubscriber.js:23:31
next@file:///app/tns_modules/rxjs/Subscriber.js:89:23
notifyComplete@file:///app/tns_modules/rxjs/operator/every.js:53:30
_complete@file:///app/tns_modules/rxjs/operator/every.js:70:28
complete@file:///app/tns_modules/rxjs/Subscriber.js:114:27
_complete@file:///app/tns_modules/rxjs/operator/mergeMap.js:135:38
complete@file:///app/tns_modules/rxjs/Subscriber.js:114:27
_subscribe@file:///app/tns_modules/rxjs/observable/ArrayObservable.js:116:32
_trySubscribe@file:///app/tns_modules/rxjs/Observable.js:57:35
subscribe@file:///app/tns_modules/rxjs/Observable.js:45:40
subscribe@file:///app/tns_modules/rxjs/Observable.js:42:26
subscribe@file:///app/tns_modules/rxjs/Observable.js:42:26
_innerSub@file:///app/tns_modules/rxjs/operator/mergeMap.js:130:55
_tryNext@file:///app/tns_modules/rxjs/operator/mergeMap.js:127:23
_next@file:///app/tns_modules/rxjs/operator/mergeMap.js:110:26
next@file:///app/tns_modules/rxjs/Subscriber.js:89:23
notifyComplete@file:///app/tns_modules/rxjs/operator/every.js:53:30
_complete@file:///app/tns_modules/rxjs/operator/every.js:70:28
complete@file:///app/tns_modules/rxjs/Subscriber.js:114:27
_complete@file:///app/tns_modules/rxjs/operator/mergeMap.js:135:38
complete@file:///app/tns_modules/rxjs/Subscriber.js:114:27
_subscribe@file:///app/tns_modules/rxjs/observable/ArrayObservable.js:116:32
_trySubscribe@file:///app/tns_modules/rxjs/Observable.js:57:35
subscribe@file:///app/tns_modules/rxjs/Observable.js:45:40
subscribe@file:///app/tns_modules/rxjs/Observable.js:42:26
subscribe@file:///app/tns_modules/rxjs/Observable.js:42:26
subscribe@file:///app/tns_modules/rxjs/Observable.js:42:26
subscribe@file:///app/tns_modules/rxjs/Observable.js:42:26
_innerSub@file:///app/tns_modules/rxjs/operator/mergeMap.js:130:55
_tryNext@file:///app/tns_modules/rxjs/operator/mergeMap.js:127:23
_next@file:///app/tns_modules/rxjs/operator/mergeMap.js:110:26
next@file:///app/tns_modules/rxjs/Subscriber.js:89:23
_next@file:///app/tns_modules/rxjs/operator/map.js:83:30
next@file:///app/tns_modules/rxjs/Subscriber.js:89:23
notifyNext@file:///app/tns_modules/rxjs/operator/mergeMap.js:143:34
_next@file:///app/tns_modules/rxjs/InnerSubscriber.js:23:31
next@file:///app/tns_modules/rxjs/Subscriber.js:89:23
_next@file:///app/tns_modules/rxjs/operator/map.js:83:30
next@file:///app/tns_modules/rxjs/Subscriber.js:89:23
_subscribe@file:///app/tns_modules/rxjs/observable/ScalarObservable.js:49:28
_trySubscribe@file:///app/tns_modules/rxjs/Observable.js:57:35
subscribe@file:///app/tns_modules/rxjs/Observable.js:45:40
subscribe@file:///app/tns_modules/rxjs/Observable.js:42:26
_innerSub@file:///app/tns_modules/rxjs/operator/mergeMap.js:130:55
_tryNext@file:///app/tns_modules/rxjs/operator/mergeMap.js:127:23
_next@file:///app/tns_modules/rxjs/operator/mergeMap.js:110:26
next@file:///app/tns_modules/rxjs/Subscriber.js:89:23
notifyNext@file:///app/tns_modules/rxjs/operator/mergeMap.js:143:34
_next@file:///app/tns_modules/rxjs/InnerSubscriber.js:23:31
{
"description": "NativeScript Application",
"license": "SEE LICENSE IN <your-license-filename>",
"readme": "NativeScript Application",
"repository": "<fill-your-repository-here>",
"nativescript": {
"id": "com.dtech.zafongo",
"tns-ios": {
"version": "2.5.0"
},
"tns-android": {
"version": "3.0.0-next-2017-03-27-1727"
}
},
"dependencies": {
"@angular/animations": "4.0.2",
"@angular/common": "4.0.2",
"@angular/compiler": "4.0.2",
"@angular/core": "4.0.2",
"@angular/forms": "4.0.2",
"@angular/http": "4.0.2",
"@angular/platform-browser": "4.0.2",
"@angular/platform-browser-dynamic": "4.0.2",
"@angular/router": "4.0.2",
"email-validator": "^1.0.7",
"moment": "^2.18.1",
"nativescript-angular": "1.5.1",
"nativescript-angular-snapshot": "1.5.1-5.5.372.32",
"nativescript-geolocation": "0.0.19",
"nativescript-google-maps-sdk": "^1.4.3",
"nativescript-google-maps-utils": "^0.1.2",
"nativescript-imagepicker": "^2.5.1",
"nativescript-iqkeyboardmanager": "^1.0.1",
"nativescript-masked-text-field": "^1.0.0",
"nativescript-maskedinput-ng2": "^1.0.6",
"nativescript-phone": "^1.2.4",
"nativescript-theme-core": "~1.0.2",
"nativescript-webview-interface": "^1.4.1",
"reflect-metadata": "~0.1.8",
"rxjs": "~5.2.0",
"tns-core-modules": "2.5.2",
"zone.js": "~0.8.2"
},
"devDependencies": {
"@angular/compiler-cli": "~4.0.2",
"@ngtools/webpack": "1.2.13",
"babel-traverse": "6.23.1",
"babel-types": "6.23.0",
"babylon": "6.16.1",
"copy-webpack-plugin": "~3.0.1",
"extract-text-webpack-plugin": "~2.0.0-beta.4",
"lazy": "1.0.11",
"nativescript-css-loader": "~0.26.0",
"nativescript-dev-android-snapshot": "^0.*.*",
"nativescript-dev-typescript": "~0.3.5",
"nativescript-dev-webpack": "^0.3.7",
"raw-loader": "~0.5.1",
"resolve-url-loader": "~1.6.0",
"typescript": "~2.1.0",
"webpack": "2.2.0",
"webpack-sources": "~0.1.3"
},
"scripts": {
"ns-bundle": "ns-bundle",
"start-android-bundle": "npm run ns-bundle --android --start-app",
"start-ios-bundle": "npm run ns-bundle --ios --start-app",
"build-android-bundle": "npm run ns-bundle --android --build-app",
"build-ios-bundle": "npm run ns-bundle --ios --build-app"
}
}