Skip to content
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

Incompatible with @vue-compat migration package #2

Open
amymaraisane7f opened this issue Apr 21, 2023 · 0 comments
Open

Incompatible with @vue-compat migration package #2

amymaraisane7f opened this issue Apr 21, 2023 · 0 comments

Comments

@amymaraisane7f
Copy link

FYI that this library is not working correctly with @vue-compat which I am using to migrate from Vue2 to Vue3.

import { createApp } from 'vue';
import Snotify from 'vue3-snotify';

const app = createApp(App);
app.use(Snotify, {});

When I attempt to display a toast notification using this.$snotify.error, there is no console warning or error and nothing is displayed.

Based on this issue, I also configured

app.config.globalProperties.$snotify = { ...snotify, create: snotify.create, add: snotify.add, emit: snotify.emit, error: snotify.error };

and used app.config.globalProperties.$snotify.error with the same result, nothing shown in the console or browser.

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

1 participant