vue-circle-progress icon indicating copy to clipboard operation
vue-circle-progress copied to clipboard

Using with SSR. Error "ReferenceError: window is not defined"

Open abratko opened this issue 5 years ago • 0 comments
trafficstars

My project use SSR. I install vue-circle-progress but don`t use component any where. I get error "ReferenceError: window is not defined"

It can be fixed easily. Just replace

var $ = require('jquery-easing');

to

const $ = typeof window !== 'undefined' ? require('jquery-easing') : null

abratko avatar Dec 05 '19 14:12 abratko