-
Notifications
You must be signed in to change notification settings - Fork 361
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
Integrate epic-spinner in nuxtjs project #43
Comments
I used nuxt with typescript, It is just simple as install and import JS version should be the same |
You can do something like below. <script>
let HollowDotsSpinner = null
if (process.client) {
HollowDotsSpinner = require('epic-spinners').HollowDotsSpinner
}
export default Vue.extend({
components: {
HollowDotsSpinner,
},
});
</script> |
I manage to solve this issue by registering the desired spinner component globally. I am using Nuxt.js v2 for reference.
import Vue from 'vue'
import { <spinner> } from 'epic-spinners'
Vue.component(component_name, <spinner>)
|
For Nuxt SSR, Just follow the usage example in the home page
|
I seem to be experiencing the same issue even after using the plugins workaround by @mamaoag. Also, no changes with the <client-only tag. |
I'm on nuxt 2.* with nuxt-bridge and this works totally fine for me (static build though):
|
Hi everyone!
Can someone help me to integrate it in nuxtjs!
Thank you!
The text was updated successfully, but these errors were encountered: