Skip to content Skip to sidebar Skip to footer

{n} Nativescript 6 - Typeerror: Cannot Read Property 'viewcompat' Of Undefined

After updating from NS 5 to NS 6, I got the following error when trying to run my application on Android: [Vue warn]: Error in v-on handler: 'TypeError: Cannot read property 'ViewC

Solution 1:

This turned out to be a problem in a plugin I was using that needed to be updated to use the AndroidX support library. I found it by searching my plugins for the string 'ViewCompat' - you should see a reference to AndroidX rather than android.support. Specifically, I resolved my issue by updating from an older version of nativescript-loading-indicator to @nstudio/nativescript-loading-indicator.


Post a Comment for "{n} Nativescript 6 - Typeerror: Cannot Read Property 'viewcompat' Of Undefined"