0👍
✅
Vue 2.6 doesn’t have composition api by default, I would suggest upgrading to vue 2.7 which includes it:
https://blog.vuejs.org/posts/vue-2-7-naruto.html
if that is not possible and you are using the vue 2 composition api plugin, chech that you are using the correct import:
// use the APIs
import { ref, reactive } from '@vue/composition-api'
Source:stackexchange.com