Javascript 我无法安装vue.use(2019年)制作的vue toasted
我使用的是Vue 2.6.10和Vue toasted 1.1.27。 但是,我从浏览器中得到一个错误。 为什么我无法安装vue toasted? vue toasted不受支持vue 2.6.10Javascript 我无法安装vue.use(2019年)制作的vue toasted,javascript,vue.js,vue-toasted,Javascript,Vue.js,Vue Toasted,我使用的是Vue 2.6.10和Vue toasted 1.1.27。 但是,我从浏览器中得到一个错误。 为什么我无法安装vue toasted? vue toasted不受支持vue 2.6.10 import Toasted from 'vue-toasted'; Vue.use(Toasted); 使用: vue-toasted.min.js:1 Uncaught TypeError: Cannot read property 'appendChild' of null at l
import Toasted from 'vue-toasted';
Vue.use(Toasted);
使用:
vue-toasted.min.js:1 Uncaught TypeError: Cannot read property 'appendChild' of null
at l (vue-toasted.min.js:1)
at new t (vue-toasted.min.js:1)
at Object.install (vue-toasted.min.js:1)
at Function.Vue.use (vue.common.dev.js:5090)
at eval (main.js:25)
at Module../src/app/main.js (main-b2fe359a90a55c61424d.js:765)
at __webpack_require__ (main-b2fe359a90a55c61424d.js:20)
at main-b2fe359a90a55c61424d.js:84
at main-b2fe359a90a55c61424d.js:87
import Toasted from 'vue-toasted';
window.addEventListener('load', () => {
Vue.use(Toasted);
});