From 27163b8d79d073aa0bc0ca2be47580454e9ae2cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=A4fer?= Date: Tue, 6 Aug 2019 10:55:20 +0200 Subject: [PATCH] Install vue-sweetalert-icon globally 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. --- webapp/components/Modal/ConfirmModal.vue | 5 ----- webapp/components/Modal/ReportModal.vue | 4 ---- .../components/PasswordReset/ChangePassword.vue | 2 -- webapp/components/PasswordReset/Request.vue | 4 ---- .../components/Registration/CreateUserAccount.vue | 2 -- webapp/components/Registration/Signup.vue | 4 ---- webapp/nuxt.config.js | 1 + webapp/package.json | 2 +- webapp/plugins/vue-sweetalert-icons.js | 4 ++++ webapp/yarn.lock | 15 +++++++++------ 10 files changed, 15 insertions(+), 28 deletions(-) create mode 100644 webapp/plugins/vue-sweetalert-icons.js diff --git a/webapp/components/Modal/ConfirmModal.vue b/webapp/components/Modal/ConfirmModal.vue index 147258849..771eee103 100644 --- a/webapp/components/Modal/ConfirmModal.vue +++ b/webapp/components/Modal/ConfirmModal.vue @@ -28,13 +28,8 @@