Skip to content

runtime error and vue3 compatibility question #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
thebreadlord opened this issue Mar 19, 2021 · 3 comments
Open

runtime error and vue3 compatibility question #15

thebreadlord opened this issue Mar 19, 2021 · 3 comments

Comments

@thebreadlord
Copy link

Hi, I apologize if this has been brought up, but my first question is: Is your plugin vue3 compatible? If the answer is yes, I'm having some issues with the following runtime error: "vue-my-toasts.esm.js:90 Uncaught TypeError: vue__WEBPACK_IMPORTED_MODULE_0__.default is not a constructor"

The initial npm install was successful, and here is the code where I'm setting up the plugin in my main.js file (very straightforward setup). I would be grateful for any suggestions, thank you!

import { createApp } from "vue";
import Sample3 from "./Sample3.vue";

const app = createApp(Sample3);

import VueMyToasts from "vue-my-toasts";
import BootstrapComponent from "vue-my-toasts/src/components/toasts/BootstrapComponent";

app.use(VueMyToasts, {
component: BootstrapComponent,
options: {
width: '400px',
position: 'bottom-right',
padding: '1rem'
}
});

app.mount("#Sample3");

@Tahul
Copy link
Collaborator

Tahul commented Apr 5, 2021

Hello @thebreadlord ;

I'll be starting to work on a Vue 3 version for this component. 😄

This might be a big rewrite though.

Stay tuned for updates.

@mesqueeb
Copy link

mesqueeb commented Jul 2, 2021

@Tahul i'd love this as well ! Will you move this to vueuse? I think it might be a good fit and you're quite active there these days.

@lukas-vis-mybanker
Copy link

@Tahul Any updates on the rewrite? Seems like everythings been dormant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants