I have a dependancy ( a directive ) that does not support SSR, (vue-material-design-ripple)
In order to make my package available for both Vue and Nuxt SSR, how can I import the directive so I don't get undefined window error??
Anyone can help please?
If (typeof window != undefined)
Well it says window is undefined because of import Ripple from 'vue-material-design-ripple'
Обсуждают сегодня