Having an interesting issue with the nativescript-ui-sidedrawer plugin while building an app with nativescript-vue
When I preview my app using the tns preview command, everything works as expected. However, whenever I try to run the app in the iOS simulator with tns debug ios --bundle, I get the following message when trying to view a component that uses the plugin:
TypeError: Could not load view for: NativeRadSideDrawer. TypeError: The superclass is not an object. ../node_modules/nativescript-ui-sidedrawer/ui-sidedrawer.common.js(file: node_modules/nativescript-ui-sidedrawer/ui-sidedrawer.common.js:27:66)
Additionally, if I try to toggle the menu, I get an error about the $refs not being found (I can't get the exact message at the moment because the above error seems to be crashing my app).
I have added the plugin via tns plugin add nativescript-ui-sidedrawer and have the following included in my main.js
import RadSideDrawer from 'nativescript-ui-sidedrawer/vue'
Vue.use(RadSideDrawer)
I have tried with the template code used in the documentation as well as my own implementation, but I still get the same error.
If anyone has any idea then I would be grateful for any help. Likewise if I can provide any more information to help debug it please let me know
tns run ios --bundle --no-hmr? - Ron Evans