Skip to content

[next] It tries to access window object when used on the server #280

Closed
@antca

Description

@antca

When vue components (.vue) are imported inside a server side bundle, vue-loader tries to add the webpack hot module replacement code when building.

if (!this.minimize &&

I think it can be fixed by checking if this.target !== 'node'.
A bit like here:

!isServer &&

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions