NativeScript / nativescript-schematics

nativescript, mobile, schematics, angular
Apache License 2.0
185 stars 26 forks source link

Unable to build android app in existing angular project #200

Open bsangee08 opened 5 years ago

bsangee08 commented 5 years ago

I read this article to add nativescript to existing angular project. I used "ng add @nativescript/schematics" and then I executed "tns run android --bundle " to build android app but build failed with many errors as shown below.

I saw a similar issue #154 and tried using absolute paths as mentioned. Still got the same errors.

ERROR in ../node_modules/tns-core-modules/ui/builder/component-builder/component-builder.js Module not found: Error: Can't resolve '../../../platform' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules\ui\builder\component-builder' @ ../node_modules/tns-core-modules/ui/builder/component-builder/component-builder.js 7:15-43 @ ../node_modules/tns-core-modules/ui/builder/builder.js @ ../node_modules/tns-core-modules/ui/repeater/repeater.js @ ../node_modules/tns-core-modules/bundle-entry-points.js @ ./main.ts

ERROR in ../node_modules/tns-core-modules/ui/core/bindable/bindable.js Module not found: Error: Can't resolve '../../../utils/utils' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules\ui\core\bindable' @ ../node_modules/tns-core-modules/ui/core/bindable/bindable.js 8:14-45 @ ../node_modules/tns-core-modules/ui/builder/component-builder/component-builder.js @ ../node_modules/tns-core-modules/ui/builder/builder.js @ ../node_modules/tns-core-modules/ui/repeater/repeater.js @ ../node_modules/tns-core-modules/bundle-entry-points.js @ ./main.ts

ERROR in ../node_modules/tns-core-modules/ui/styling/linear-gradient.js Module not found: Error: Can't resolve '../../color' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules\ui\styling' @ ../node_modules/tns-core-modules/ui/styling/linear-gradient.js 2:14-36 @ ../node_modules/tns-core-modules/ui/styling/style-properties.js @ ../node_modules/tns-core-modules/ui/animation/keyframe-animation.js @ ../node_modules/tns-core-modules/ui/styling/style-scope.js @ ../node_modules/nativescript-dev-webpack/load-application-css.js @ ../node_modules/nativescript-dev-webpack/load-application-css-angular.js @ ./main.ts

ERROR in ../node_modules/tns-core-modules/ui/styling/style-properties.js Module not found: Error: Can't resolve '../../color' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules\ui\styling' @ ../node_modules/tns-core-modules/ui/styling/style-properties.js 3:14-36 @ ../node_modules/tns-core-modules/ui/animation/keyframe-animation.js @ ../node_modules/tns-core-modules/ui/styling/style-scope.js @ ../node_modules/nativescript-dev-webpack/load-application-css.js @ ../node_modules/nativescript-dev-webpack/load-application-css-angular.js @ ./main.ts

ERROR in ../node_modules/tns-core-modules/file-system/file-name-resolver/file-name-resolver.js Module not found: Error: Can't resolve '../../platform' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules\file-system\file-name-resolver' @ ../node_modules/tns-core-modules/file-system/file-name-resolver/file-name-resolver.js 2:17-42 @ ../node_modules/tns-core-modules/ui/builder/builder.js @ ../node_modules/tns-core-modules/ui/repeater/repeater.js @ ../node_modules/tns-core-modules/bundle-entry-points.js @ ./main.ts

ERROR in ../node_modules/tns-core-modules/ui/builder/builder.js Module not found: Error: Can't resolve '../../platform' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules\ui\builder' @ ../node_modules/tns-core-modules/ui/builder/builder.js 7:17-42 @ ../node_modules/tns-core-modules/ui/repeater/repeater.js @ ../node_modules/tns-core-modules/bundle-entry-points.js @ ./main.ts

ERROR in ../node_modules/tns-core-modules/ui/styling/style-properties.js Module not found: Error: Can't resolve '../../platform' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules\ui\styling' @ ../node_modules/tns-core-modules/ui/styling/style-properties.js 7:17-42 @ ../node_modules/tns-core-modules/ui/animation/keyframe-animation.js @ ../node_modules/tns-core-modules/ui/styling/style-scope.js @ ../node_modules/nativescript-dev-webpack/load-application-css.js @ ../node_modules/nativescript-dev-webpack/load-application-css-angular.js @ ./main.ts

ERROR in ../node_modules/tns-core-modules/ui/styling/style-properties.js Module not found: Error: Can't resolve '../../ui/styling/background' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules\ui\styling' @ ../node_modules/tns-core-modules/ui/styling/style-properties.js 6:19-57 @ ../node_modules/tns-core-modules/ui/animation/keyframe-animation.js @ ../node_modules/tns-core-modules/ui/styling/style-scope.js @ ../node_modules/nativescript-dev-webpack/load-application-css.js @ ../node_modules/nativescript-dev-webpack/load-application-css-angular.js @ ./main.ts

ERROR in ../node_modules/tns-core-modules/ui/styling/style-properties.js Module not found: Error: Can't resolve '../../ui/styling/font' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules\ui\styling' @ ../node_modules/tns-core-modules/ui/styling/style-properties.js 4:13-45 @ ../node_modules/tns-core-modules/ui/animation/keyframe-animation.js @ ../node_modules/tns-core-modules/ui/styling/style-scope.js @ ../node_modules/nativescript-dev-webpack/load-application-css.js @ ../node_modules/nativescript-dev-webpack/load-application-css-angular.js @ ./main.ts

ERROR in ../node_modules/tns-core-modules/ui/styling/style-properties.js Module not found: Error: Can't resolve '../../utils/utils' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules\ui\styling' @ ../node_modules/tns-core-modules/ui/styling/style-properties.js 5:14-42 @ ../node_modules/tns-core-modules/ui/animation/keyframe-animation.js @ ../node_modules/tns-core-modules/ui/styling/style-scope.js @ ../node_modules/nativescript-dev-webpack/load-application-css.js @ ../node_modules/nativescript-dev-webpack/load-application-css-angular.js @ ./main.ts

ERROR in ../node_modules/tns-core-modules/ui/content-view/content-view.js Module not found: Error: Can't resolve '../core/view' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules\ui\content-view' @ ../node_modules/tns-core-modules/ui/content-view/content-view.js 5:13-36 6:9-32 @ ../node_modules/tns-core-modules/bundle-entry-points.js @ ./main.ts

ERROR in ../node_modules/tns-core-modules/ui/placeholder/placeholder.js Module not found: Error: Can't resolve '../core/view' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules\ui\placeholder' @ ../node_modules/tns-core-modules/ui/placeholder/placeholder.js 2:13-36 @ ../node_modules/tns-core-modules/bundle-entry-points.js @ ./main.ts

ERROR in ../node_modules/tns-core-modules/ui/repeater/repeater.js Module not found: Error: Can't resolve '../label' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules\ui\repeater' @ ../node_modules/tns-core-modules/ui/repeater/repeater.js 5:14-33 @ ../node_modules/tns-core-modules/bundle-entry-points.js @ ./main.ts

ERROR in ../node_modules/tns-core-modules/ui/proxy-view-container/proxy-view-container.js Module not found: Error: Can't resolve '../layouts/layout-base' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules\ui\proxy-view-container' @ ../node_modules/tns-core-modules/ui/proxy-view-container/proxy-view-container.js 2:20-53 @ ../node_modules/tns-core-modules/bundle-entry-points.js @ ./main.ts

ERROR in ../node_modules/tns-core-modules/ui/repeater/repeater.js Module not found: Error: Can't resolve '../layouts/layout-base' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules\ui\repeater' @ ../node_modules/tns-core-modules/ui/repeater/repeater.js 6:20-53 12:9-42 @ ../node_modules/tns-core-modules/bundle-entry-points.js @ ./main.ts

ERROR in ../node_modules/tns-core-modules/ui/repeater/repeater.js Module not found: Error: Can't resolve '../layouts/stack-layout' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules\ui\repeater' @ ../node_modules/tns-core-modules/ui/repeater/repeater.js 7:21-55 @ ../node_modules/tns-core-modules/bundle-entry-points.js @ ./main.ts

ERROR in ../node_modules/tns-core-modules/utils/debug.js Module not found: Error: Can't resolve '../platform' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules\utils' @ ../node_modules/tns-core-modules/utils/debug.js 3:17-39 @ ../node_modules/tns-core-modules/ui/builder/builder.js @ ../node_modules/tns-core-modules/ui/repeater/repeater.js @ ../node_modules/tns-core-modules/bundle-entry-points.js @ ./main.ts

ERROR in ../node_modules/tns-core-modules/text/span.js Module not found: Error: Can't resolve '../ui/core/view' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules\text' @ ../node_modules/tns-core-modules/text/span.js 2:13-39 @ ../node_modules/tns-core-modules/bundle-entry-points.js @ ./main.ts

ERROR in ../node_modules/tns-core-modules/text/formatted-string.js Module not found: Error: Can't resolve '../ui/core/view' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules\text' @ ../node_modules/tns-core-modules/text/formatted-string.js 6:13-39 @ ../node_modules/tns-core-modules/bundle-entry-points.js @ ./main.ts

ERROR in ../node_modules/tns-core-modules/ui/animation/keyframe-animation.js Module not found: Error: Can't resolve './animation' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules\ui\animation' @ ../node_modules/tns-core-modules/ui/animation/keyframe-animation.js 5:18-40 @ ../node_modules/tns-core-modules/ui/styling/style-scope.js @ ../node_modules/nativescript-dev-webpack/load-application-css.js @ ../node_modules/nativescript-dev-webpack/load-application-css-angular.js @ ./main.ts

ERROR in ../node_modules/tns-core-modules/file-system/file-system.js Module not found: Error: Can't resolve './file-system-access' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules\file-system' @ ../node_modules/tns-core-modules/file-system/file-system.js 2:25-56 @ ../node_modules/tns-core-modules/ui/styling/style-scope.js @ ../node_modules/nativescript-dev-webpack/load-application-css.js @ ../node_modules/nativescript-dev-webpack/load-application-css-angular.js @ ./main.ts

ERROR in ../node_modules/tns-core-modules/http/http.js Module not found: Error: Can't resolve './http-request' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules\http' @ ../node_modules/tns-core-modules/http/http.js 5:18-43 6:9-34 @ ../node_modules/tns-core-modules/xhr/xhr.js @ ../node_modules/tns-core-modules/globals/globals.js @ ../node_modules/tns-core-modules/bundle-entry-points.js @ ./main.ts

ERROR in ./app.css Module not found: Error: Can't resolve 'nativescript-theme-core/css/core.light.css' in 'E:\AndroidApp\AttendancePortalNew\src' @ ./app.css 3:10-111 @ ../node_modules/nativescript-dev-webpack/load-application-css-angular.js @ ./main.ts

ERROR in ../node_modules/tns-core-modules/file-system/file-system.js Module not found: Error: Can't resolve 'platform' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules\file-system' @ ../node_modules/tns-core-modules/file-system/file-system.js 14:19-38 @ ../node_modules/tns-core-modules/ui/styling/style-scope.js @ ../node_modules/nativescript-dev-webpack/load-application-css.js @ ../node_modules/nativescript-dev-webpack/load-application-css-angular.js @ ./main.ts

ERROR in ../node_modules/tns-core-modules/globals/globals.js Module not found: Error: Can't resolve 'timer' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules\globals' @ ../node_modules/tns-core-modules/globals/globals.js 73:52-68 104:24-40 @ ../node_modules/tns-core-modules/bundle-entry-points.js @ ./main.ts

ERROR in ../node_modules/nativescript-dev-webpack/load-application-css.js Module not found: Error: Can't resolve 'tns-core-modules/application' in 'E:\AndroidApp\AttendancePortalNew\node_modules\nativescript-dev-webpack' @ ../node_modules/nativescript-dev-webpack/load-application-css.js 2:24-63 @ ../node_modules/nativescript-dev-webpack/load-application-css-angular.js @ ./main.ts

ERROR in ./main.ts Module not found: Error: Can't resolve 'tns-core-modules/application' in 'E:\AndroidApp\AttendancePortalNew\src' @ ./main.ts 2:39-78

ERROR in ../node_modules/tns-core-modules/bundle-entry-points.js Module not found: Error: Can't resolve 'tns-core-modules/ui/action-bar' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules' @ ../node_modules/tns-core-modules/bundle-entry-points.js 5:64-105 @ ./main.ts

ERROR in ../node_modules/tns-core-modules/bundle-entry-points.js Module not found: Error: Can't resolve 'tns-core-modules/ui/activity-indicator' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules' @ ../node_modules/tns-core-modules/bundle-entry-points.js 6:72-121 @ ./main.ts

ERROR in ../node_modules/tns-core-modules/bundle-entry-points.js Module not found: Error: Can't resolve 'tns-core-modules/ui/button' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules' @ ../node_modules/tns-core-modules/bundle-entry-points.js 8:60-97 @ ./main.ts

ERROR in ../node_modules/tns-core-modules/bundle-entry-points.js Module not found: Error: Can't resolve 'tns-core-modules/ui/date-picker' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules' @ ../node_modules/tns-core-modules/bundle-entry-points.js 10:65-107 @ ./main.ts

ERROR in ../node_modules/tns-core-modules/bundle-entry-points.js Module not found: Error: Can't resolve 'tns-core-modules/ui/frame' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules' @ ../node_modules/tns-core-modules/bundle-entry-points.js 11:59-95 @ ./main.ts

ERROR in ./main.ts Module not found: Error: Can't resolve 'tns-core-modules/ui/frame' in 'E:\AndroidApp\AttendancePortalNew\src' @ ./main.ts 4:12-48

ERROR in ./main.ts Module not found: Error: Can't resolve 'tns-core-modules/ui/frame/activity' in 'E:\AndroidApp\AttendancePortalNew\src' @ ./main.ts 5:0-45

ERROR in ../node_modules/tns-core-modules/bundle-entry-points.js Module not found: Error: Can't resolve 'tns-core-modules/ui/html-view' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules' @ ../node_modules/tns-core-modules/bundle-entry-points.js 12:63-103 @ ./main.ts

ERROR in ../node_modules/tns-core-modules/bundle-entry-points.js Module not found: Error: Can't resolve 'tns-core-modules/ui/image' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules' @ ../node_modules/tns-core-modules/bundle-entry-points.js 13:59-95 @ ./main.ts

ERROR in ../node_modules/tns-core-modules/bundle-entry-points.js Module not found: Error: Can't resolve 'tns-core-modules/ui/label' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules' @ ../node_modules/tns-core-modules/bundle-entry-points.js 14:59-95 @ ./main.ts

ERROR in ../node_modules/tns-core-modules/bundle-entry-points.js Module not found: Error: Can't resolve 'tns-core-modules/ui/layouts/absolute-layout' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules' @ ../node_modules/tns-core-modules/bundle-entry-points.js 15:77-131 @ ./main.ts

ERROR in ../node_modules/tns-core-modules/bundle-entry-points.js Module not found: Error: Can't resolve 'tns-core-modules/ui/layouts/dock-layout' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules' @ ../node_modules/tns-core-modules/bundle-entry-points.js 16:73-123 @ ./main.ts

ERROR in ../node_modules/tns-core-modules/bundle-entry-points.js Module not found: Error: Can't resolve 'tns-core-modules/ui/layouts/flexbox-layout' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules' @ ../node_modules/tns-core-modules/bundle-entry-points.js 19:76-129 @ ./main.ts

ERROR in ../node_modules/tns-core-modules/bundle-entry-points.js Module not found: Error: Can't resolve 'tns-core-modules/ui/layouts/grid-layout' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules' @ ../node_modules/tns-core-modules/bundle-entry-points.js 17:73-123 @ ./main.ts

ERROR in ../node_modules/tns-core-modules/bundle-entry-points.js Module not found: Error: Can't resolve 'tns-core-modules/ui/layouts/stack-layout' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules' @ ../node_modules/tns-core-modules/bundle-entry-points.js 18:74-125 @ ./main.ts

ERROR in ../node_modules/tns-core-modules/bundle-entry-points.js Module not found: Error: Can't resolve 'tns-core-modules/ui/layouts/wrap-layout' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules' @ ../node_modules/tns-core-modules/bundle-entry-points.js 20:73-123 @ ./main.ts

ERROR in ../node_modules/tns-core-modules/bundle-entry-points.js Module not found: Error: Can't resolve 'tns-core-modules/ui/list-picker' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules' @ ../node_modules/tns-core-modules/bundle-entry-points.js 21:65-107 @ ./main.ts

ERROR in ../node_modules/tns-core-modules/bundle-entry-points.js Module not found: Error: Can't resolve 'tns-core-modules/ui/list-view' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules' @ ../node_modules/tns-core-modules/bundle-entry-points.js 37:63-103 @ ./main.ts

ERROR in ../node_modules/tns-core-modules/bundle-entry-points.js Module not found: Error: Can't resolve 'tns-core-modules/ui/page' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules' @ ../node_modules/tns-core-modules/bundle-entry-points.js 22:58-93 @ ./main.ts

ERROR in ../node_modules/tns-core-modules/bundle-entry-points.js Module not found: Error: Can't resolve 'tns-core-modules/ui/progress' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules' @ ../node_modules/tns-core-modules/bundle-entry-points.js 24:62-101 @ ./main.ts

ERROR in ../node_modules/tns-core-modules/bundle-entry-points.js Module not found: Error: Can't resolve 'tns-core-modules/ui/scroll-view' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules' @ ../node_modules/tns-core-modules/bundle-entry-points.js 27:65-107 @ ./main.ts

ERROR in ../node_modules/tns-core-modules/bundle-entry-points.js Module not found: Error: Can't resolve 'tns-core-modules/ui/search-bar' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules' @ ../node_modules/tns-core-modules/bundle-entry-points.js 28:64-105 @ ./main.ts

ERROR in ../node_modules/tns-core-modules/bundle-entry-points.js Module not found: Error: Can't resolve 'tns-core-modules/ui/segmented-bar' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules' @ ../node_modules/tns-core-modules/bundle-entry-points.js 29:67-111 @ ./main.ts

ERROR in ../node_modules/tns-core-modules/bundle-entry-points.js Module not found: Error: Can't resolve 'tns-core-modules/ui/slider' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules' @ ../node_modules/tns-core-modules/bundle-entry-points.js 30:60-97 @ ./main.ts

ERROR in ../node_modules/tns-core-modules/bundle-entry-points.js Module not found: Error: Can't resolve 'tns-core-modules/ui/switch' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules' @ ../node_modules/tns-core-modules/bundle-entry-points.js 31:60-97 @ ./main.ts

ERROR in ../node_modules/tns-core-modules/bundle-entry-points.js Module not found: Error: Can't resolve 'tns-core-modules/ui/tab-view' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules' @ ../node_modules/tns-core-modules/bundle-entry-points.js 32:62-101 @ ./main.ts

ERROR in ../node_modules/tns-core-modules/bundle-entry-points.js Module not found: Error: Can't resolve 'tns-core-modules/ui/text-field' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules' @ ../node_modules/tns-core-modules/bundle-entry-points.js 34:64-105 @ ./main.ts

ERROR in ../node_modules/tns-core-modules/bundle-entry-points.js Module not found: Error: Can't resolve 'tns-core-modules/ui/text-view' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules' @ ../node_modules/tns-core-modules/bundle-entry-points.js 35:63-103 @ ./main.ts

ERROR in ../node_modules/tns-core-modules/bundle-entry-points.js Module not found: Error: Can't resolve 'tns-core-modules/ui/time-picker' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules' @ ../node_modules/tns-core-modules/bundle-entry-points.js 36:65-107 @ ./main.ts

ERROR in ../node_modules/tns-core-modules/bundle-entry-points.js Module not found: Error: Can't resolve 'tns-core-modules/ui/web-view' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules' @ ../node_modules/tns-core-modules/bundle-entry-points.js 33:62-101 @ ./main.ts

ERROR in ../node_modules/tns-core-modules/ui/enums/enums.js Module not found: Error: Can't resolve 'ui/animation' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules\ui\enums' @ ../node_modules/tns-core-modules/ui/enums/enums.js 178:45-68 @ ../node_modules/tns-core-modules/ui/animation/keyframe-animation.js @ ../node_modules/tns-core-modules/ui/styling/style-scope.js @ ../node_modules/nativescript-dev-webpack/load-application-css.js @ ../node_modules/nativescript-dev-webpack/load-application-css-angular.js @ ./main.ts

ERROR in ../node_modules/tns-core-modules/globals/globals.js Module not found: Error: Can't resolve 'ui/dialogs' in 'E:\AndroidApp\AttendancePortalNew\node_modules\tns-core-modules\globals' @ ../node_modules/tns-core-modules/globals/globals.js 74:57-78 105:26-47 @ ../node_modules/tns-core-modules/bundle-entry-points.js @ ./main.ts

Webpack compilation complete. Watching for file changes. Webpack build done! Preparing project... Project successfully prepared (Android) Successfully transferred all files on device emulator-5554. Restarting application on device emulator-5554... Successfully synced application org.nativescript.ngsample on device emulator-5554. System.err: java.lang.RuntimeException: Unable to create application com.tns.NativeScriptApplication: com.tns.NativeScriptException: System.err: System.err: Error calling module function System.err: System.err: Error calling module function System.err: System.err: Error: Cannot find module "tns-core-modules/application" System.err: File: "file:///data/data/org.nativescript.ngsample/files/app/bundle.js, line: 1763, column: 198 System.err: System.err: StackTrace: System.err: Frame: function:'webpackMissingModule', file:'file:///data/data/org.nativescript.ngsample/files/app/bundle.js', line: 1763, column: 104System.err: Frame: function:'', file:'file:///data/data/org.nativescript.ngsample/files/app/bundle.js', line: 1763, column: 209 System.err: Frame: function:'./main.ts', file:'file:///data/data/org.nativescript.ngsample/files/app/bundle.js', line: 1792, column: 30 System.err: Frame: function:'webpack_require', file:'file:///data/data/org.nativescript.ngsample/files/app/bundle.js', line: 76, column: 30 System.err: Frame: function:'checkDeferredModules', file:'file:///data/data/org.nativescript.ngsample/files/app/bundle.js', line: 45, column: 23 System.err: Frame: function:'', file:'file:///data/data/org.nativescript.ngsample/files/app/bundle.js', line: 151, column: 18 System.err: Frame: function:'', file:'file:///data/data/org.nativescript.ngsample/files/app/bundle.js', line: 154, column: 10 System.err: Frame: function:'require', file:'', line: 1, column: 266 System.err: Frame: function:'', file:'file:///data/data/org.nativescript.ngsample/files/app/starter.js', line: 2, column: 1 System.err: Frame: function:'require', file:'', line: 1, column: 266 System.err: System.err: System.err: Error: Cannot find module "tns-core-modules/application" System.err: File: ", line: 1, column: 265 System.err: System.err: StackTrace: System.err: Frame: function:'webpackMissingModule', file:'file:///data/data/org.nativescript.ngsample/files/app/bundle.js', line: 1763, column: 104System.err: Frame: function:'', file:'file:///data/data/org.nativescript.ngsample/files/app/bundle.js', line: 1763, column: 209 System.err: Frame: function:'./main.ts', file:'file:///data/data/org.nativescript.ngsample/files/app/bundle.js', line: 1792, column: 30 System.err: Frame: function:'webpack_require', file:'file:///data/data/org.nativescript.ngsample/files/app/bundle.js', line: 76, column: 30 System.err: Frame: function:'checkDeferredModules', file:'file:///data/data/org.nativescript.ngsample/files/app/bundle.js', line: 45, column: 23 System.err: Frame: function:'', file:'file:///data/data/org.nativescript.ngsample/files/app/bundle.js', line: 151, column: 18 System.err: Frame: function:'', file:'file:///data/data/org.nativescript.ngsample/files/app/bundle.js', line: 154, column: 10 System.err: Frame: function:'require', file:'', line: 1, column: 266 System.err: Frame: function:'', file:'file:///data/data/org.nativescript.ngsample/files/app/starter.js', line: 2, column: 1 System.err: Frame: function:'require', file:'', line: 1, column: 266 System.err: System.err: System.err: Error: Cannot find module "tns-core-modules/application" System.err: File: ", line: 1, column: 265 System.err: System.err: StackTrace: System.err: Frame: function:'webpackMissingModule', file:'file:///data/data/org.nativescript.ngsample/files/app/bundle.js', line: 1763, column: 104System.err: Frame: function:'', file:'file:///data/data/org.nativescript.ngsample/files/app/bundle.js', line: 1763, column: 209 System.err: Frame: function:'./main.ts', file:'file:///data/data/org.nativescript.ngsample/files/app/bundle.js', line: 1792, column: 30 System.err: Frame: function:'webpack_require', file:'file:///data/data/org.nativescript.ngsample/files/app/bundle.js', line: 76, column: 30 System.err: Frame: function:'checkDeferredModules', file:'file:///data/data/org.nativescript.ngsample/files/app/bundle.js', line: 45, column: 23 System.err: Frame: function:'', file:'file:///data/data/org.nativescript.ngsample/files/app/bundle.js', line: 151, column: 18 System.err: Frame: function:'', file:'file:///data/data/org.nativescript.ngsample/files/app/bundle.js', line: 154, column: 10 System.err: Frame: function:'require', file:'', line: 1, column: 266 System.err: Frame: function:'', file:'file:///data/data/org.nativescript.ngsample/files/app/starter.js', line: 2, column: 1 System.err: Frame: function:'require', file:'', line: 1, column: 266 System.err: System.err: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5876) System.err: at android.app.ActivityThread.access$1100(ActivityThread.java:199) System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1650) System.err: at android.os.Handler.dispatchMessage(Handler.java:106) System.err: at android.os.Looper.loop(Looper.java:193) System.err: at android.app.ActivityThread.main(ActivityThread.java:6669) System.err: at java.lang.reflect.Method.invoke(Native Method) System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858) System.err: Caused by: com.tns.NativeScriptException: System.err: System.err: Error calling module function System.err: System.err: Error calling module function System.err: System.err: Error: Cannot find module "tns-core-modules/application" System.err: File: "file:///data/data/org.nativescript.ngsample/files/app/bundle.js, line: 1763, column: 198 System.err: System.err: StackTrace: System.err: Frame: function:'webpackMissingModule', file:'file:///data/data/org.nativescript.ngsample/files/app/bundle.js', line: 1763, column: 104System.err: Frame: function:'', file:'file:///data/data/org.nativescript.ngsample/files/app/bundle.js', line: 1763, column: 209 System.err: Frame: function:'./main.ts', file:'file:///data/data/org.nativescript.ngsample/files/app/bundle.js', line: 1792, column: 30 System.err: Frame: function:'webpack_require', file:'file:///data/data/org.nativescript.ngsample/files/app/bundle.js', line: 76, column: 30 System.err: Frame: function:'checkDeferredModules', file:'file:///data/data/org.nativescript.ngsample/files/app/bundle.js', line: 45, column: 23 System.err: Frame: function:'', file:'file:///data/data/org.nativescript.ngsample/files/app/bundle.js', line: 151, column: 18 System.err: Frame: function:'', file:'file:///data/data/org.nativescript.ngsample/files/app/bundle.js', line: 154, column: 10 System.err: Frame: function:'require', file:'', line: 1, column: 266 System.err: Frame: function:'', file:'file:///data/data/org.nativescript.ngsample/files/app/starter.js', line: 2, column: 1 System.err: Frame: function:'require', file:'', line: 1, column: 266 System.err: System.err: System.err: Error: Cannot find module "tns-core-modules/application" System.err: File: ", line: 1, column: 265 System.err: System.err: StackTrace: System.err: Frame: function:'webpackMissingModule', file:'file:///data/data/org.nativescript.ngsample/files/app/bundle.js', line: 1763, column: 104System.err: Frame: function:'', file:'file:///data/data/org.nativescript.ngsample/files/app/bundle.js', line: 1763, column: 209 System.err: Frame: function:'./main.ts', file:'file:///data/data/org.nativescript.ngsample/files/app/bundle.js', line: 1792, column: 30 System.err: Frame: function:'webpack_require', file:'file:///data/data/org.nativescript.ngsample/files/app/bundle.js', line: 76, column: 30 System.err: Frame: function:'checkDeferredModules', file:'file:///data/data/org.nativescript.ngsample/files/app/bundle.js', line: 45, column: 23 System.err: Frame: function:'', file:'file:///data/data/org.nativescript.ngsample/files/app/bundle.js', line: 151, column: 18 System.err: Frame: function:'', file:'file:///data/data/org.nativescript.ngsample/files/app/bundle.js', line: 154, column: 10 System.err: Frame: function:'require', file:'', line: 1, column: 266 System.err: Frame: function:'', file:'file:///data/data/org.nativescript.ngsample/files/app/starter.js', line: 2, column: 1 System.err: Frame: function:'require', file:'', line: 1, column: 266 System.err: System.err: System.err: Error: Cannot find module "tns-core-modules/application" System.err: File: ", line: 1, column: 265 System.err: System.err: StackTrace: System.err: Frame: function:'webpackMissingModule', file:'file:///data/data/org.nativescript.ngsample/files/app/bundle.js', line: 1763, column: 104System.err: Frame: function:'', file:'file:///data/data/org.nativescript.ngsample/files/app/bundle.js', line: 1763, column: 209 System.err: Frame: function:'./main.ts', file:'file:///data/data/org.nativescript.ngsample/files/app/bundle.js', line: 1792, column: 30 System.err: Frame: function:'webpack_require', file:'file:///data/data/org.nativescript.ngsample/files/app/bundle.js', line: 76, column: 30 System.err: Frame: function:'checkDeferredModules', file:'file:///data/data/org.nativescript.ngsample/files/app/bundle.js', line: 45, column: 23 System.err: Frame: function:'', file:'file:///data/data/org.nativescript.ngsample/files/app/bundle.js', line: 151, column: 18 System.err: Frame: function:'', file:'file:///data/data/org.nativescript.ngsample/files/app/bundle.js', line: 154, column: 10 System.err: Frame: function:'require', file:'', line: 1, column: 266 System.err: Frame: function:'', file:'file:///data/data/org.nativescript.ngsample/files/app/starter.js', line: 2, column: 1 System.err: Frame: function:'require', file:'', line: 1, column: 266 System.err: System.err: at com.tns.Runtime.runModule(Native Method) System.err: at com.tns.Runtime.runModule(Runtime.java:624) System.err: at com.tns.Runtime.run(Runtime.java:616) System.err: at com.tns.NativeScriptApplication.onCreate(NativeScriptApplication.java:21) System.err: at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1154) System.err: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5871) System.err: ... 8 more

Package.json "dependencies": { "nativescript-angular": "~7.2.0", "nativescript-theme-core": "~1.0.4", "reflect-metadata": "~0.1.12", "tns-core-modules": "~5.2.0", "@angular/animations": "^6.0.0", "@angular/cdk": "^6.4.6", "@angular/common": "^6.0.0", "@angular/compiler": "^6.0.0", "@angular/core": "^6.0.0", "@angular/forms": "^6.0.0", "@angular/http": "^6.0.0", "@angular/material": "^6.4.6", "@angular/platform-browser": "^6.0.0", "@angular/platform-browser-dynamic": "^6.0.0", "@angular/router": "^6.0.0", "@nativescript/schematics": "^0.5.1", "@ng-bootstrap/ng-bootstrap": "^2.0.0", "@ngx-translate/core": "^10.0.1", "@ngx-translate/http-loader": "^3.0.1", "@types/file-saver": "^1.3.0", "angular-calendar": "0.25.2", "angular-material": "^1.1.10", "angular4-material-table": "^0.6.7", "angularx-flatpickr": "^6.0.0", "chart.js": "^2.7.2", "compass": "^0.1.1", "compass-mixins": "^0.12.10", "core-js": "^2.5.5", "file-saver": "^1.3.8", "flatpickr": "^4.5.1", "font-awesome": "^4.7.0", "fs": "0.0.1-security", "js-sha256": "^0.9.0", "ng2-charts": "^1.6.0", "ngx-countdown": "^3.1.0", "ngx-material-file-input": "^0.3.0", "ngx-permissions": "^6.0.2", "rxjs": "^6.1.0", "rxjs-compat": "^6.2.2", "xlsx": "^0.13.5", "xlsx-style": "^0.8.13", "yarn": "^1.6.0", "zone.js": "^0.8.26" }, "devDependencies": { "@angular-devkit/build-angular": "~0.6.0", "@angular/cli": "^6.2.9", "@angular/compiler-cli": "^6.0.0", "@angular/language-service": "^6.0.0", "@nativescript/schematics": "~0.4.0", "@types/jasmine": "~2.8.6", "@types/jasminewd2": "~2.0.3", "@types/node": "^9.6.1", "codelyzer": "~4.2.1", "jasmine-core": "~3.1.0", "jasmine-spec-reporter": "~4.2.1", "karma": "~2.0.0", "karma-chrome-launcher": "~2.2.0", "karma-cli": "~1.0.1", "karma-coverage-istanbul-reporter": "^1.4.2", "karma-jasmine": "~1.1.1", "karma-jasmine-html-reporter": "^1.0.0", "nativescript-dev-webpack": "^0.20.0", "protractor": "~5.3.0", "ts-node": "~5.0.1", "tslint": "~5.9.1", "typescript": "~2.7.0" }, "browser": { "fs": false, "path": false, "os": false }, "nativescript": { "id": "org.nativescript.ngsample", "tns-android": { "version": "5.2.1" } }

pj035 commented 5 years ago

@bsangee08 did you find a solution yet? I'm facing the same problem.

patgoins commented 5 years ago

@bsangee08 @pj035 I am having the same issue. Did either of you guys or did anyone on the NativeScript team have a resolution to this issue?

vytautas-pranskunas- commented 5 years ago

me to

cyberbobjr commented 5 years ago

same problem here