Vuetify components must be wrapped within a VApp element. By default, the vue toastification container is attached to the HTML body (making it a sibling of the VApp container). To solve this problem, you can add the following code when installing the vue toastification plugin:
import Toast from "vue-toastification"; import type { PluginOptions } from "vue-toastification"; const ToastOptions: PluginOptions = { shareAppContext: true, container: () => document.getElementById("app")!, }; app.use(Toast, ToastOptions);
Container is the element that toast should be mounted on: HTMLElement or a function that returns/parses to HTMLElement. The Vuetify App element should be a div
with the id #appTo access other global plugins that may be used in the component, such as $t in i18n, you may also want to access the application context. This can be achieved by adding the shareAppContext option. More information