You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there ! I have inexplicable problem.
project: laravel 8 & vue 3 and installed vue-js-modal
yarn add vue-js-modal // installed through this
Problem:
Cannot read properties of undefined (reading '$modal')
import {createApp, inject, ref} from 'vue'
import routes from './routes'
import store from "./store/store";
import VModal from 'vue-js-modal'
const app = createApp(App)
.use(routes)
.use(store)
.use(VModal);
app.config.globalProperties.$modal = VModal; //and I commented this line
app.mount('#app');
Version:
Vue 3
Example & screenshots:
The text was updated successfully, but these errors were encountered:
try to inject VModal in context nuxt(2).js export default function (_, inject) { inject("modal", VModal); }
but in context receive this install: ƒ (e,t)
Hi there ! I have inexplicable problem.
project: laravel 8 & vue 3 and installed vue-js-modal
Problem:
Cannot read properties of undefined (reading '$modal')
Version:
Vue 3
Example & screenshots:
The text was updated successfully, but these errors were encountered: