mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Updating the package to `v4.0.0` still gives me this warning: ``` WARN Compiled with 1 warnings WARN in ./components/PasswordReset/ChangePassword.vue?vue&type=script&lang=js& "export 'SweetalertIcon' was not found in 'vue-sweetalert-icons' ``` According to this thread https://github.com/JorgenVatle/vue-sweetalert-icons/issues/3 I copy+pasted the example configuration: https://github.com/JorgenVatle/vue-sweetalert-icons-preview/blob/master/nuxt.config.js https://github.com/JorgenVatle/vue-sweetalert-icons-preview/blob/master/plugins/vue-sweetalert-icons.js And now the compile warnings are gone. I'm going to ask the maintainer if the local import is not possible with `v4.0.0` anymore.
5 lines
105 B
JavaScript
5 lines
105 B
JavaScript
import Vue from 'vue'
|
|
import VueSweetalertIcons from 'vue-sweetalert-icons'
|
|
|
|
Vue.use(VueSweetalertIcons)
|