-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v3.2.1 document is not defined #3
Comments
If you're on Nuxt, styles from 4.0 aren't properly injected into the server response. This might explain why you don't see the icons render properly. You should be able to work around the issue by wrapping the icons around the Let me know if this helps! 👍 |
4.0 is now available as a pre-release:
|
@JorgenVatle thank you for your quick reply! On
The exact same error as if I would On
The error persists. 😿 |
Oof. Sorry about that! I'll take a crack at it first thing in the morning. 😊 |
4.0 should be live now. 🎉 @roschaefer Let me know if this update does the trick for you. 👍 |
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 JorgenVatle/vue-sweetalert-icons#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.
@JorgenVatle from my commit message:
The local import option is gone now? 😿 Maybe update docs? I'm going to close this because I can happily update to Thank you @JorgenVatle you are super responsive. |
@roschaefer Oh, thanks for the notice. Completely forgot about that! 😅 You should still be able to import the SFC directly. import VueSweetalertIcon from 'vue-sweetalert-icons/src/components/icon';
export default {
components: { VueSweetalertIcon }
} I'll have to verify this though. 👍 |
@JorgenVatle I double-checked and it works. However when I run the tests I get the following error:
which is obvious because jest is not supposed to parse vue single file components. It was my main motivation to do the local imports in order to avoid extra effort setting up the tests. @JorgenVatle would you mind to simply export the EDIT: For context, here's a PR Human-Connection/Human-Connection#1217 (review) |
@roschaefer Oh, totally! Can't believe I missed that. 😂 Went ahead an pushed out a new update ( |
In version `v4.2.0` of `vue-sweetalert-icons` the local import is back, see: JorgenVatle/vue-sweetalert-icons#3 (comment)
Hey, thanks for this great package! It's great to use just the animated icons of Sweetalert.
Unfortunately, we see an issue when upgrading from
v3.2.0
tov.3.2.1
:We do SSR with Nuxtjs.
I quickly tried out the unpublished version
v.4.0.0
, built the package because there is nodist
folder pushed to Github and it seems that might resolve the issue. At least I don't get the error above, only the icons itself are missing. I'm sure the error is on my side, maybe I don't understand how to properly build the package.How about publishing
v4.0.0
to npm and we give it another try?To reproduce the error try out this PR: Human-Connection/Human-Connection#791
The text was updated successfully, but these errors were encountered: