first we use the Element UI that encapsulates Notifacation for us so there is no need to install Notifacation in your project;
so there is no need to introduce the installed notifacation
in main
some web sites say that installing “Notifications” directly and importing Notifications from “Notifications” in main.js is wrong.
if you want to use notifaction why do you need to import additional components to install other components in this place if you bring in additional notifaction please customize the notifaction do not use element Ui;
if you want to use element Ui, simply make the following configuration in element. Js to solve the problem:
step1: import {Notifacation} from ‘element-ui’
step2: do not write vue. use(Notifacation) when using; instead, write
Vue.prototype.$notify = Notification
> this.$notify is not a function;
> this.$notify is not a function.
if a prompt for toast pops up as soon as you enter a page or refresh the top of a page in the project, remove vue. use (Message) from element.js, but Import is still needed;
Read More:
- Selenium reports an error and solves the problem of element not interactive exception, element not interactive
- Vue3 uses element plus package to solve the problem of occasionally disordered code on the icon after it goes online
- The problem that the El icons icon cannot be displayed in vue3 + element plus + vite
- The problem that the content extra data in the notification cannot be updated
- Invalid use of element UI icon by vite
- Solving the problem of joi. Validate is not a function
- Vue — report error with less module build failed: typeerror: loaderContext.getResolve is not a function
- [Error][IntelliJ IDEA] Element XXX is not allowed here
- About iView reporting error in Vue project: error in mounted hook: “typeerror: this$ parent.updateNav is not a function”
- The togglerowexpansion method of the table of element UI expands the specified row
- Vue + element, SCSS plus / deep / style does not work
- Vue Error in v-on handler: “TypeError: path.indexOf is not a function“
- Vue error in mounted hook: “typeerror: object (…) is not a function“
- Failed to execute ‘getComputedStyle’ on ‘Window’: parameter 1 is not of type ‘Element’.
- Vue element admin configure global styles
- The solution of this. $message is not a function
- Element ‘dependency‘ cannot have character [children], because the type‘s content type is element-on
- JS error – typeerror: XXX is not a function
- (element UI component table) how to add a style to a table
- Uncaught Error: _registerComponent(…): Target container is not a DOM element