Skip to content

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

@abratko

Description

@abratko

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions