bbbford opened this issue 3 years ago · 2 comments
Just loaded up a new project with v-mapbox, following the guide. The map does not render, and this error in console:
Cannot read properties of undefined (reading 'container')
Had the same problem.
Fixed by installing npm install @vue/composition-api and registering the plugin in main.js
npm install @vue/composition-api
import Vue from 'vue' import VueCompositionAPI from "@vue/composition-api" Vue.use(VueCompositionAPI)
That was it, thanks @a21y!