YES
Please, ensure your title is less than 63 characters long and starts with a capital
letter.
Android confirmed
tns --version to fetch it) 3.4.0node_modules/tns-core-modules/package.json file in your project) 3.4.0"tns-android" and "tns-ios" properties in thepackage.json file of your project) 3.4.0package.json file of your "moment": "^2.19.1",
"nativescript-barcodescanner": "^2.7.0",
"nativescript-camera": "^3.1.2",
"nativescript-cardview": "^2.0.4",
"nativescript-checkbox": "^3.0.1",
"nativescript-dev-sass": "~1.3.5",
"nativescript-drawingpad": "^2.1.0",
"nativescript-drop-down": "^3.2.0",
"nativescript-email": "^1.5.1",
"nativescript-filterable-listpicker": "^1.0.4",
"nativescript-floatingactionbutton": "^4.1.3",
"nativescript-fresco": "^3.0.6",
"nativescript-iqkeyboardmanager": "^1.1.0",
"nativescript-loading-indicator": "^2.4.0",
"nativescript-localstorage": "^1.1.5",
"nativescript-permissions": "^1.2.3",
"nativescript-phone": "^1.3.1",
"nativescript-pro-ui": "^3.3.0",
"nativescript-sentry": "^1.3.0",
"nativescript-snackbar": "^2.0.0",
"nativescript-social-share": "^1.4.0",
"nativescript-svg": "^1.3.4",
"nativescript-theme-core": "~1.0.4",
"nativescript-toasty": "^1.1.5",
Livesyncing error:
An uncaught Exception occurred on "main" thread.
com.tns.NativeScriptException:
Error running script /data/user/0/com.jsoftllc.loopmein/files/internal/livesync.js
TypeError: Cannot read property 'entry' of undefined
File: "file:///data/data/com.jsoftllc.loopmein/files/app/tns_modules/tns-core-modules/ui/frame/frame-common.js, line: 36, column: 46
StackTrace:
Frame: function:'reloadPage', file:'file:///data/data/com.jsoftllc.loopmein/files/app/tns_modules/tns-core-modules/ui/frame/frame-common.js', line: 36, column: 47
Frame: function:'livesync', file:'file:///data/data/com.jsoftllc.loopmein/files/app/tns_modules/tns-core-modules/application/application-common.js', line: 49, column: 9
Frame: function:'global.__onLiveSync', file:'file:///data/data/com.jsoftllc.loopmein/files/app/tns_modules/tns-core-modules/application/application.js', line: 137, column: 26
Frame: function:'', file:'/data/user/0/com.jsoftllc.loopmein/files/internal/livesync.js', line: 2, column: 9
at com.tns.Runtime.runScript(Native Method)
at com.tns.Runtime.access$2200(Runtime.java:34)
at com.tns.Runtime$2.run(Runtime.java:551)
at android.os.Handler.handleCallback(Handler.java:789)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6541)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
Just upgraded from 3.3.0 to 3.4.0 and things went smooth for a little while then I started changing scss files and livesync was transferring according to the logs but then when the app tries to refresh this error is thrown.
Below is the terminal logging for development with tns run android
11:12:57 AM - File change detected. Starting incremental compilation...
Successfully transferred inventory-detail.minWH600.scss.
Refreshing application...
11:12:59 AM - Compilation complete. Watching for file changes.
Successfully synced application com.jsoftllc.loopmein on device emulator-5554.
Skipping prepare.
ActivityManager: Start proc 7065:com.jsoftllc.loopmein/u0a166 for activity com.jsoftllc.loopmein/com.tns.NativeScriptActivity
JS: *** stored User Token *** = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwOCIsImlhdCI6MTUxMzg3NDg3NH0.I3QV8vuK68ur97RezLMleOGmfCN3cevwyQDc5P07zV0
System.err: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
System.err: SLF4J: Defaulting to no-operation (NOP) logger implementation
System.err: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
12-21 11:12:26.609 7065 7065 W LayerDrawable: at com.tns.Runtime.callJSMethodNative(Native Method)
12-21 11:12:26.609 7065 7065 W LayerDrawable: at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1088)
12-21 11:12:26.609 7065 7065 W LayerDrawable: at com.tns.Runtime.callJSMethodImpl(Runtime.java:970)
12-21 11:12:26.609 7065 7065 W LayerDrawable: at com.tns.Runtime.callJSMethod(Runtime.java:957)
12-21 11:12:26.609 7065 7065 W LayerDrawable: at com.tns.Runtime.callJSMethod(Runtime.java:941)
12-21 11:12:26.609 7065 7065 W LayerDrawable: at com.tns.Runtime.callJSMethod(Runtime.java:933)
JS: TypeError: Cannot read property 'animate' of undefined
System.err: com.tns.NativeScriptException:
System.err: Error running script /data/user/0/com.jsoftllc.loopmein/files/internal/livesync.js
System.err:
System.err: TypeError: Cannot read property 'entry' of undefined
System.err: File: "file:///data/data/com.jsoftllc.loopmein/files/app/tns_modules/tns-core-modules/ui/frame/frame-common.js, line: 36, column: 46
System.err:
System.err: StackTrace:
System.err: Frame: function:'reloadPage', file:'file:///data/data/com.jsoftllc.loopmein/files/app/tns_modules/tns-core-modules/ui/frame/frame-common.js', line: 36, column: 47
System.err: Frame: function:'livesync', file:'file:///data/data/com.jsoftllc.loopmein/files/app/tns_modules/tns-core-modules/application/application-common.js', line: 49, column: 9
System.err: Frame: function:'global.__onLiveSync', file:'file:///data/data/com.jsoftllc.loopmein/files/app/tns_modules/tns-core-modules/application/application.js', line: 137, column: 26
System.err: Frame: function:'', file:'/data/user/0/com.jsoftllc.loopmein/files/internal/livesync.js', line: 2, column: 9
System.err:
System.err: at com.tns.Runtime.runScript(Native Method)
System.err: at com.tns.Runtime.access$2200(Runtime.java:34)
System.err: at com.tns.Runtime$2.run(Runtime.java:551)
System.err: at android.os.Handler.handleCallback(Handler.java:789)
System.err: at android.os.Handler.dispatchMessage(Handler.java:98)
System.err: at android.os.Looper.loop(Looper.java:164)
System.err: at android.app.ActivityThread.main(ActivityThread.java:6541)
System.err: at java.lang.reflect.Method.invoke(Native Method)
System.err: at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
JS: [Sentry - Android] Exeption on capture: Error: Cannot convert object to Lio/sentry/event/Event; at index 0
JS: [object Object]
ActivityManager: Process com.jsoftllc.loopmein (pid 7065) has died: fore TOP
ActivityManager: setHasOverlayUi called on unknown pid: 7065
Successfully transferred inventory-detail.minWH600.css.
Refreshing application...
Successfully synced application com.jsoftllc.loopmein on device emulator-5554.
^CExecuting after-watch hook from /Users/bradmartin/projects/loopmein-mobile/hooks/after-watch/nativescript-dev-sass.js
Stopping sass watch
Executing after-watch hook from /Users/bradmartin/projects/loopmein-mobile/hooks/after-watch/nativescript-dev-typescript.js
Stopping tsc watch
Executing after-watch hook from /Users/bradmartin/projects/loopmein-mobile/hooks/after-watch/nativescript-dev-sass.js
Executing after-watch hook from /Users/bradmartin/projects/loopmein-mobile/hooks/after-watch/nativescript-dev-typescript.js
Brads-MBP:loopmein-mobile bradmartin$ tns --version
3.4.0
Restarting with tns run android allows to keep developing, just FYI. Changing .xml files doesn't seem to cause the issue so possibly it's only related to the scss/css.
Seems to happen majority of the time when modifying a scss file
@bradmartin I've tried to reproduce the issue using the template drawer navigation application (demo here). However, on my side changes in the scss files are applied as expected.
I have used the following workflow:
tns create my-app-name --template tns-template-drawer-navigation-ng
tns run android
// make change in some of the Android SCSS files and save
// result: changes are applied via livesync
Please do let me know if you have more info on how to reproduce the issue (or sample project)
I'm also having this exception, and it occurs randomly after the second code update, no matter the type of file edition, I use more in the case of encoding with TypeScript.
same here, second or third update cause that exception, helps only restaring manually tns from console
i guess its not a real fix, but adding check in frame-common.js in reloadPage function
if (frame && frame._currentEntry) {
gives an oportunity to work without restarting
I'm having the same issue. Had my app working fine, added sass, then receive this error every time I modify an scss file while livesync is running. TNS RUN will re-start the emulator and work OK, but sure makes it hard to fine-tune the layout.
@bezzil85 Wheere is the frame-common.js file found?
The last two major releases (4.. and then 5..0.0) both introduced a number of changes and optimizations to the livesync process (including an HMR option)/ The issue seems to be no longer reproducible with the originally posted error
TypeError: Cannot read property 'entry' of undefined
Closing the issue but please if anyone experiences any livesync related issue feel free to provide detailed information in new issue posted in the nativescript-cli repository.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
I'm also having this exception, and it occurs randomly after the second code update, no matter the type of file edition, I use more in the case of encoding with TypeScript.