You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error is generated Calling js method onCreate failed
altf1be\GroceriesList>tns run android --bundle --env.uglify
Skipping node_modules folder! Use the syncAllFiles option to sync files from this folder.
Searching for devices...
Executing before-liveSync hook from altf1be\GroceriesList\hooks\before-liveSync\nativescript-angular-sync.js
Executing before-watchPatterns hook from altf1be\GroceriesList\hooks\before-watchPatterns\nativescript-dev-typescript.js
Executing before-watchPatterns hook from altf1be\GroceriesList\hooks\before-watchPatterns\nativescript-dev-webpack.js
Executing before-watch hook from altf1be\GroceriesList\hooks\before-watch\nativescript-dev-typescript.js
Hook skipped because bundling is in progress.
Executing before-watch hook from altf1be\GroceriesList\hooks\before-watch\nativescript-dev-webpack.js
Running webpack for Android...
clean-webpack-plugin: altf1be\GroceriesList\platforms\android\app\src\main\assets\app*** has been removed.
File change detected. Starting incremental webpack compilation...
tns run android --bundle --env.uglify
Calling js method onCreate failed
altf1be\GroceriesList>tns run android --bundle --env.uglify
Skipping node_modules folder! Use the syncAllFiles option to sync files from this folder.
Searching for devices...
Executing before-liveSync hook from altf1be\GroceriesList\hooks\before-liveSync\nativescript-angular-sync.js
Executing before-watchPatterns hook from altf1be\GroceriesList\hooks\before-watchPatterns\nativescript-dev-typescript.js
Executing before-watchPatterns hook from altf1be\GroceriesList\hooks\before-watchPatterns\nativescript-dev-webpack.js
Executing before-watch hook from altf1be\GroceriesList\hooks\before-watch\nativescript-dev-typescript.js
Hook skipped because bundling is in progress.
Executing before-watch hook from altf1be\GroceriesList\hooks\before-watch\nativescript-dev-webpack.js
Running webpack for Android...
clean-webpack-plugin: altf1be\GroceriesList\platforms\android\app\src\main\assets\app*** has been removed.
File change detected. Starting incremental webpack compilation...
webpack is watching the files…
Hash: bf732a8bb517aa816d4b
Version: webpack 4.24.0
Time: 57605ms
Built at: 2018-11-18 13:20:01
Asset Size Chunks Chunk Names
App_Resources/Android/AndroidManifest.xml 1.45 KiB [emitted]
App_Resources/Android/app.gradle 759 bytes [emitted]
App_Resources/Android/drawable-hdpi/background.png 3 KiB [emitted]
App_Resources/Android/drawable-hdpi/icon.png 2.42 KiB [emitted]
App_Resources/Android/drawable-hdpi/logo.png 18.9 KiB [emitted]
App_Resources/Android/drawable-ldpi/background.png 1.12 KiB [emitted]
App_Resources/Android/drawable-ldpi/icon.png 990 bytes [emitted]
App_Resources/Android/drawable-ldpi/logo.png 7.04 KiB [emitted]
App_Resources/Android/drawable-mdpi/background.png 1.65 KiB [emitted]
App_Resources/Android/drawable-mdpi/icon.png 1.35 KiB [emitted]
App_Resources/Android/drawable-mdpi/logo.png 10.8 KiB [emitted]
App_Resources/Android/drawable-nodpi/splash_screen.xml 304 bytes [emitted]
App_Resources/Android/drawable-xhdpi/background.png 4.71 KiB [emitted]
App_Resources/Android/drawable-xhdpi/icon.png 3.42 KiB [emitted]
App_Resources/Android/drawable-xhdpi/logo.png 27.1 KiB [emitted]
App_Resources/Android/drawable-xxhdpi/background.png 9.29 KiB [emitted]
App_Resources/Android/drawable-xxhdpi/icon.png 5.24 KiB [emitted]
App_Resources/Android/drawable-xxhdpi/logo.png 25.8 KiB [emitted]
App_Resources/Android/drawable-xxxhdpi/background.png 15.4 KiB [emitted]
App_Resources/Android/drawable-xxxhdpi/icon.png 13.2 KiB [emitted]
App_Resources/Android/drawable-xxxhdpi/logo.png 25.8 KiB [emitted]
App_Resources/Android/settings.gradle 1.63 KiB [emitted]
App_Resources/Android/settings.json 80 bytes [emitted]
App_Resources/Android/values-v21/colors.xml 104 bytes [emitted]
App_Resources/Android/values-v21/styles.xml 902 bytes [emitted]
App_Resources/Android/values/colors.xml 237 bytes [emitted]
App_Resources/Android/values/styles.xml 1.68 KiB [emitted]
bundle.js 11 KiB 0 [emitted] bundle
images/add.png 214 bytes [emitted]
images/background.jpg 813 KiB [emitted]
images/delete.png 409 bytes [emitted]
images/logo.png 12.5 KiB [emitted]
package.json 165 bytes [emitted]
starter.js 39 bytes [emitted]
tns-java-classes.js 0 bytes [emitted]
vendor.js 1.77 MiB 1 [emitted] vendor
Entrypoint bundle = vendor.js bundle.js
[3] ../node_modules/rxjs/_esm5/internal/Observable.js + 1 modules 4.55 KiB {1} [built]
| 2 modules
[7] ../node_modules/rxjs/_esm5/internal/Subscription.js + 2 modules 5.56 KiB {1} [built]
| 3 modules
[22] ../node_modules/rxjs/_esm5/internal/observable/from.js + 5 modules 6.17 KiB {1} [built]
| 6 modules
[30] ../node_modules/rxjs/_esm5/internal/util/subscribeToResult.js + 1 modules 1.47 KiB {1} [built]
| 2 modules
[40] ../node_modules/@angular/router/fesm5/router.js + 11 modules 225 KiB {1} [built]
| 12 modules
[47] ../node_modules/rxjs/_esm5/index.js + 43 modules 78.5 KiB {1} [built]
| 44 modules
[62] ../node_modules/rxjs/_esm5/internal/observable/of.js + 1 modules 1.17 KiB {1} [built]
| 2 modules
[119] ./package.json 165 bytes {0} [optional] [built]
[186] ../$$_lazy_route_resource lazy namespace object 160 bytes {0} [built]
[210] ./app.module.ts + 9 modules 11.2 KiB {0} [built]
| ./app.module.ts 1.14 KiB [built]
| ./app.component.ts 366 bytes [built]
| ./app.routing.ts 308 bytes [built]
| ./login/login.component.ts 2.03 KiB [built]
| ./list/list.component.ts 2.76 KiB [built]
| ./shared/user/user.model.ts 108 bytes [built]
| ./shared/user/user.service.ts 1.66 KiB [built]
| ./shared/grocery/grocery.service.ts 2.31 KiB [built]
| ./shared/config.ts 320 bytes [built]
| ./shared/grocery/grocery.model.ts 176 bytes [built]
[211] ./main.ts 691 bytes {0} [built]
[245] ./app.css 333 bytes {0} [built]
[275] ./login/login.component.css 649 bytes {0} [built]
[276] ./login/login.component.html 792 bytes {0} [built]
[280] ../node_modules/rxjs/_esm5/internal/operators/share.js + 1 modules 1.92 KiB {1} [built]
| 2 modules
+ 351 hidden modules
Webpack compilation complete. Watching for file changes.
Webpack build done!
Executing before-shouldPrepare hook from altf1be\GroceriesList\hooks\before-shouldPrepare\nativescript-dev-webpack.js
Executing before-cleanApp hook from altf1be\GroceriesList\hooks\before-cleanApp\nativescript-dev-webpack.js
Executing before-prepare hook from altf1be\GroceriesList\hooks\before-prepare\nativescript-dev-typescript.js
Hook skipped because either bundling or livesync is in progress.
Preparing project...
Executing before-prepareJSApp hook from altf1be\GroceriesList\hooks\before-prepareJSApp\nativescript-dev-webpack.js
Gradle clean...
+ setting applicationId
+ applying user-defined configuration from altf1be\GroceriesList\app\App_Resources\Android\app.gradle
Applying settings from altf1be\GroceriesList\app\App_Resources\Android\settings.json
Using support library version 28.0.0
+ adding nativescript runtime package dependency: nativescript-optimized-with-inspector
+ adding aar plugin dependency: altf1be\GroceriesList\node_modules\nativescript-background-http\platforms\android\nativescript_background_http.aar
+ adding aar plugin dependency: altf1be\GroceriesList\node_modules\nativescript-camera\platforms\android\nativescript_camera.aar
+ adding aar plugin dependency: altf1be\GroceriesList\node_modules\nativescript-fresco\platforms\android\processors-release.aar
+ adding aar plugin dependency: altf1be\GroceriesList\node_modules\nativescript-geolocation\platforms\android\nativescript_geolocation.aar
+ adding aar plugin dependency: altf1be\GroceriesList\node_modules\nativescript-social-share\platforms\android\nativescript_social_share.aar
+ adding aar plugin dependency: altf1be\GroceriesList\node_modules\nativescript-ui-autocomplete\platforms\android\TNSAutoComplete-release.aar
+ adding aar plugin dependency: altf1be\GroceriesList\node_modules\nativescript-ui-calendar\platforms\android\TNSCalendar-release.aar
+ adding aar plugin dependency: altf1be\GroceriesList\node_modules\nativescript-ui-chart\platforms\android\TNSChart-release.aar
+ adding aar plugin dependency: altf1be\GroceriesList\node_modules\nativescript-ui-dataform\platforms\android\TNSDataForm-release.aar
+ adding aar plugin dependency: altf1be\GroceriesList\node_modules\nativescript-ui-gauge\platforms\android\TNSGauge-release.aar
+ adding aar plugin dependency: altf1be\GroceriesList\node_modules\nativescript-ui-listview\platforms\android\TNSListView-release.aar
+ adding aar plugin dependency: altf1be\GroceriesList\node_modules\nativescript-ui-sidedrawer\platforms\android\TNSSideDrawer-release.aar
+ adding aar plugin dependency: altf1be\GroceriesList\node_modules\nativescript-ui-core\platforms\android\TNSCore-release.aar
+ adding aar plugin dependency: altf1be\GroceriesList\node_modules\tns-core-modules-widgets\platforms\android\widgets-release.aar
Project successfully prepared (Android)
Executing after-prepare hook from altf1be\GroceriesList\hooks\after-prepare\nativescript-dev-webpack.js
Building project...
Gradle build...
+ setting applicationId
+ applying user-defined configuration from altf1be\GroceriesList\app\App_Resources\Android\app.gradle
Applying settings from altf1be\GroceriesList\app\App_Resources\Android\settings.json
Using support library version 28.0.0
+ adding nativescript runtime package dependency: nativescript-optimized-with-inspector
+ adding aar plugin dependency: altf1be\GroceriesList\node_modules\nativescript-background-http\platforms\android\nativescript_background_http.aar
+ adding aar plugin dependency: altf1be\GroceriesList\node_modules\nativescript-camera\platforms\android\nativescript_camera.aar
+ adding aar plugin dependency: altf1be\GroceriesList\node_modules\nativescript-fresco\platforms\android\processors-release.aar
+ adding aar plugin dependency: altf1be\GroceriesList\node_modules\nativescript-geolocation\platforms\android\nativescript_geolocation.aar
+ adding aar plugin dependency: altf1be\GroceriesList\node_modules\nativescript-social-share\platforms\android\nativescript_social_share.aar
+ adding aar plugin dependency: altf1be\GroceriesList\node_modules\nativescript-ui-autocomplete\platforms\android\TNSAutoComplete-release.aar
+ adding aar plugin dependency: altf1be\GroceriesList\node_modules\nativescript-ui-calendar\platforms\android\TNSCalendar-release.aar
+ adding aar plugin dependency: altf1be\GroceriesList\node_modules\nativescript-ui-chart\platforms\android\TNSChart-release.aar
+ adding aar plugin dependency: altf1be\GroceriesList\node_modules\nativescript-ui-dataform\platforms\android\TNSDataForm-release.aar
+ adding aar plugin dependency: altf1be\GroceriesList\node_modules\nativescript-ui-gauge\platforms\android\TNSGauge-release.aar
+ adding aar plugin dependency: altf1be\GroceriesList\node_modules\nativescript-ui-listview\platforms\android\TNSListView-release.aar
+ adding aar plugin dependency: altf1be\GroceriesList\node_modules\nativescript-ui-sidedrawer\platforms\android\TNSSideDrawer-release.aar
+ adding aar plugin dependency: altf1be\GroceriesList\node_modules\nativescript-ui-core\platforms\android\TNSCore-release.aar
+ adding aar plugin dependency: altf1be\GroceriesList\node_modules\tns-core-modules-widgets\platforms\android\widgets-release.aar
(node:12252) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Project successfully built.
Installing on device emulator-5554...
Successfully installed on device with identifier 'emulator-5554'.
Refreshing application on device emulator-5554...
Successfully synced application be.altf1.groceriesngpwa on device emulator-5554.
11-18 13:23:03.662 16823 16823 E AndroidRuntime: at com.tns.Runtime.callJSMethodNative(Native Method)
11-18 13:23:03.662 16823 16823 E AndroidRuntime: at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1116)
11-18 13:23:03.662 16823 16823 E AndroidRuntime: at com.tns.Runtime.callJSMethodImpl(Runtime.java:996)
11-18 13:23:03.662 16823 16823 E AndroidRuntime: at com.tns.Runtime.callJSMethod(Runtime.java:983)
11-18 13:23:03.662 16823 16823 E AndroidRuntime: at com.tns.Runtime.callJSMethod(Runtime.java:967)
11-18 13:23:03.662 16823 16823 E AndroidRuntime: at com.tns.Runtime.callJSMethod(Runtime.java:959)
System.err: java.lang.RuntimeException: Unable to start activity ComponentInfo{be.altf1.groceriesngpwa/com.tns.NativeScriptActivity}: com.tns.NativeScriptException:
System.err: Calling js method onCreate failed
System.err:
System.err: Error: moduleId should be a string in "t". See https://goo.gl/wIDDiL for more information.
System.err: If you're using Webpack you should inline the template and the styles, see https://goo.gl/X2J8zc.
System.err: File: "file:///data/data/be.altf1.groceriesngpwa/files/app/vendor.js, line: 1, column: 1772563
System.err:
System.err: StackTrace:
System.err: Frame: function:'c', file:'file:///data/data/be.altf1.groceriesngpwa/files/app/vendor.js', line: 1, column: 1555435
System.err: Frame: function:'le', file:'file:///data/data/be.altf1.groceriesngpwa/files/app/vendor.js', line: 1, column: 233696
System.err: Frame: function:'e.componentModuleUrl', file:'file:///data/data/be.altf1.groceriesngpwa/files/app/vendor.js', line: 1, column: 1772591
System.err: Frame: function:'e.loadDirectiveMetadata', file:'file:///data/data/be.altf1.groceriesngpwa/files/app/vendor.js', line: 1, column: 408350
System.err: Frame: function:'', file:'file:///data/data/be.altf1.groceriesngpwa/files/app/vendor.js', line: 1, column: 654488
System.err: Frame: function:'', file:'file:///data/data/be.altf1.groceriesngpwa/files/app/vendor.js', line: 1, column: 654442
System.err: Frame: function:'e._loadModules', file:'file:///data/data/be.altf1.groceriesngpwa/files/app/vendor.js', line: 1, column: 654327
System.err: Frame: function:'e._compileModuleAndComponents', file:'file:///data/data/be.altf1.groceriesngpwa/files/app/vendor.js', line: 1, column: 653866
System.err: Frame: function:'e.compileModuleAsync', file:'file:///data/data/be.altf1.groceriesngpwa/files/app/vendor.js', line: 1, column: 652766
System.err: Frame: function:'e.compileModuleAsync', file:'file:///data/data/be.altf1.groceriesngpwa/files/app/vendor.js', line: 1, column: 1774257
System.err: Frame: function:'e.bootstrapModule', file:'file:///data/data/be.altf1.groceriesngpwa/files/app/vendor.js', line: 1, column: 59884
System.err: Frame: function:'_bootstrapper', file:'file:///data/data/be.altf1.groceriesngpwa/files/app/vendor.js', line: 1, column: 1761050
System.err: Frame: function:'', file:'file:///data/data/be.altf1.groceriesngpwa/files/app/vendor.js', line: 1, column: 1762262
System.err: Frame: function:'e.notify', file:'file:///data/data/be.altf1.groceriesngpwa/files/app/vendor.js', line: 1, column: 1013098
System.err: Frame: function:'', file:'file:///data/data/be.altf1.groceriesngpwa/files/app/vendor.js', line: 1, column: 805883
System.err: Frame: function:'e.setActivityContent', file:'file:///data/data/be.altf1.groceriesngpwa/files/app/vendor.js', line: 1, column: 804877
System.err: Frame: function:'e.onCreate', file:'file:///data/data/be.altf1.groceriesngpwa/files/app/vendor.js', line: 1, column: 802349
System.err: Frame: function:'n.onCreate', file:'file:///data/data/be.altf1.groceriesngpwa/files/app/vendor.js', line: 1, column: 1730090
System.err:
System.err: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2913)
System.err: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3048)
System.err: at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
System.err: at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
System.err: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808)
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: Calling js method onCreate failed
System.err:
System.err: Error: moduleId should be a string in "t". See https://goo.gl/wIDDiL for more information.
System.err: If you're using Webpack you should inline the template and the styles, see https://goo.gl/X2J8zc.
System.err: File: "file:///data/data/be.altf1.groceriesngpwa/files/app/vendor.js, line: 1, column: 1772563
System.err:
System.err: StackTrace:
System.err: Frame: function:'c', file:'file:///data/data/be.altf1.groceriesngpwa/files/app/vendor.js', line: 1, column: 1555435
System.err: Frame: function:'le', file:'file:///data/data/be.altf1.groceriesngpwa/files/app/vendor.js', line: 1, column: 233696
System.err: Frame: function:'e.componentModuleUrl', file:'file:///data/data/be.altf1.groceriesngpwa/files/app/vendor.js', line: 1, column: 1772591
System.err: Frame: function:'e.loadDirectiveMetadata', file:'file:///data/data/be.altf1.groceriesngpwa/files/app/vendor.js', line: 1, column: 408350
System.err: Frame: function:'', file:'file:///data/data/be.altf1.groceriesngpwa/files/app/vendor.js', line: 1, column: 654488
System.err: Frame: function:'', file:'file:///data/data/be.altf1.groceriesngpwa/files/app/vendor.js', line: 1, column: 654442
System.err: Frame: function:'e._loadModules', file:'file:///data/data/be.altf1.groceriesngpwa/files/app/vendor.js', line: 1, column: 654327
System.err: Frame: function:'e._compileModuleAndComponents', file:'file:///data/data/be.altf1.groceriesngpwa/files/app/vendor.js', line: 1, column: 653866
System.err: Frame: function:'e.compileModuleAsync', file:'file:///data/data/be.altf1.groceriesngpwa/files/app/vendor.js', line: 1, column: 652766
System.err: Frame: function:'e.compileModuleAsync', file:'file:///data/data/be.altf1.groceriesngpwa/files/app/vendor.js', line: 1, column: 1774257
System.err: Frame: function:'e.bootstrapModule', file:'file:///data/data/be.altf1.groceriesngpwa/files/app/vendor.js', line: 1, column: 59884
System.err: Frame: function:'_bootstrapper', file:'file:///data/data/be.altf1.groceriesngpwa/files/app/vendor.js', line: 1, column: 1761050
System.err: Frame: function:'', file:'file:///data/data/be.altf1.groceriesngpwa/files/app/vendor.js', line: 1, column: 1762262
System.err: Frame: function:'e.notify', file:'file:///data/data/be.altf1.groceriesngpwa/files/app/vendor.js', line: 1, column: 1013098
System.err: Frame: function:'', file:'file:///data/data/be.altf1.groceriesngpwa/files/app/vendor.js', line: 1, column: 805883
System.err: Frame: function:'e.setActivityContent', file:'file:///data/data/be.altf1.groceriesngpwa/files/app/vendor.js', line: 1, column: 804877
System.err: Frame: function:'e.onCreate', file:'file:///data/data/be.altf1.groceriesngpwa/files/app/vendor.js', line: 1, column: 802349
System.err: Frame: function:'n.onCreate', file:'file:///data/data/be.altf1.groceriesngpwa/files/app/vendor.js', line: 1, column: 1730090
System.err:
System.err: at com.tns.Runtime.callJSMethodNative(Native Method)
System.err: at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1116)
System.err: at com.tns.Runtime.callJSMethodImpl(Runtime.java:996)
System.err: at com.tns.Runtime.callJSMethod(Runtime.java:983)
System.err: at com.tns.Runtime.callJSMethod(Runtime.java:967)
System.err: at com.tns.Runtime.callJSMethod(Runtime.java:959)
System.err: at com.tns.NativeScriptActivity.onCreate(NativeScriptActivity.java:18)
System.err: at android.app.Activity.performCreate(Activity.java:7136)
System.err: at android.app.Activity.performCreate(Activity.java:7127)
System.err: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271)
System.err: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2893)
System.err: ... 11 more
The text was updated successfully, but these errors were encountered: