Nativescript-vue: CSS changes are not working properly

Created on 12 Oct 2017  路  4Comments  路  Source: nativescript-vue/nativescript-vue

  1. Go to the CSS of your project
  2. Make change to the CSS (a new line is enough)
  3. Save
    Actual: An error will be thrown on Android
    img_2929
    Expected: The CSS to be applied without restarting the App
    Comment: If you made a second change and save the app will be restarted and the change is going to be applied.
bug help wanted

Most helpful comment

Update:
With nativescript 3.3
if you change the css this error is thrown:
"System.err: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
System.err: at android.view.ViewGroup.addViewInner(ViewGroup.java:4417)
System.err: at android.view.ViewGroup.addView(ViewGroup.java:4258)
System.err: at android.view.ViewGroup.addView(ViewGroup.java:4198)
System.err: at android.view.ViewGroup.addView(ViewGroup.java:4171)
System.err: at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1007)
System.err: at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1171)
System.err: at android.app.BackStackRecord.run(BackStackRecord.java:816)
System.err: at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1578)
System.err: at android.app.FragmentManagerImpl$1.run(FragmentManager.java:483)
System.err: at android.os.Handler.handleCallback(Handler.java:751)
System.err: at android.os.Handler.dispatchMessage(Handler.java:95)
System.err: at android.os.Looper.loop(Looper.java:154)
System.err: at android.app.ActivityThread.main(ActivityThread.java:6119)
System.err: at java.lang.reflect.Method.invoke(Native Method)
System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)"

All 4 comments

Update:
With nativescript 3.3
if you change the css this error is thrown:
"System.err: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
System.err: at android.view.ViewGroup.addViewInner(ViewGroup.java:4417)
System.err: at android.view.ViewGroup.addView(ViewGroup.java:4258)
System.err: at android.view.ViewGroup.addView(ViewGroup.java:4198)
System.err: at android.view.ViewGroup.addView(ViewGroup.java:4171)
System.err: at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1007)
System.err: at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1171)
System.err: at android.app.BackStackRecord.run(BackStackRecord.java:816)
System.err: at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1578)
System.err: at android.app.FragmentManagerImpl$1.run(FragmentManager.java:483)
System.err: at android.os.Handler.handleCallback(Handler.java:751)
System.err: at android.os.Handler.dispatchMessage(Handler.java:95)
System.err: at android.os.Looper.loop(Looper.java:154)
System.err: at android.app.ActivityThread.main(ActivityThread.java:6119)
System.err: at java.lang.reflect.Method.invoke(Native Method)
System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)"

I have tried it in "0.7.8". The android app doesn't crash, but the CSS is not applied until you restart the app.
I don't think this issue should be closed until the changes are applied correctly.
The progress is in good direction but the issue is not solved.

I believe this issue is now fixed, closing it for now but if it still occurs let me know and we will reopen it!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Sjoerd picture Sjoerd  路  3Comments

academici picture academici  路  5Comments

HunterJS-bit picture HunterJS-bit  路  3Comments

Tronix117 picture Tronix117  路  3Comments

I-NOZex picture I-NOZex  路  4Comments