initbase / vue-modal-2

A simple and lightweight Vue (v2) modal component.
https://initbase.github.io/vue-modal-2/
MIT License
8 stars 4 forks source link

I use vue 3 #14

Closed doemmakara closed 1 year ago

doemmakara commented 1 year ago

When I import modal in main.js It error.

import Modal from "@burhanahmeed/vue-modal-2";

createApp(App) .use(Modal) .mount('#app')

vue-modal-2.esm.js?5175:762 Uncaught TypeError: Cannot read properties of undefined (reading '$vm2') at Object.install (vue-modal-2.esm.js?5175:762:1) at Object.use (runtime-core.esm-bundler.js?5c40:3809:1) at eval (main.js?56d7:27:1) at ./src/main.js (app.js:1591:1) at webpack_require (app.js:854:30) at fn (app.js:151:20) at 1 (app.js:2107:18) at webpack_require (app.js:854:30) at checkDeferredModules (app.js:46:23) at app.js:994:18