I’ve copied the following Vue component and inserted it into my app:
The page renders fine, but I get the following error:
TypeError: Cannot read property 'create' of undefined
at VueComponent.onPageInit (Picker.vue?./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options:141)
at invokeWithErrorHandling (vue.esm.js:1862)
at VueComponent.invoker (vue.esm.js:2187)
at invokeWithErrorHandling (vue.esm.js:1862)
at VueComponent.Vue.$emit (vue.esm.js:3885)
at eval (vue-component-dispatch-event.js:9)
at Array.forEach (<anonymous>)
at eval (vue-component-dispatch-event.js:8)
at VueComponent.dispatchEvent (page.js:481)
at VueComponent.onPageInit (page.js:358)
It seems like this.$f7
is missing quite a bit of API functionality. Even the following example from https://framework7.io/vue/vue-component-extensions.html did not work for me:
<template>
...
</template>
<script>
export default {
...
mounted() {
this.$f7ready((f7) => {
f7.dialog.alert('Component mounted');
});
},
};
</script>