Skip to content

importing this element breaks server-side-rendered app #243

@odahcam

Description

@odahcam

This element (or at least it's dist code) does a lot of window variable usage, breaking an SSR app, since there's no window on server-side. Error might be like that (this one's from an Angular app):

$ cd dist && node server
<app_workdir>\dist\server.js:250113
const nativeShadow = !(window['ShadyDOM'] && window['ShadyDOM']['inUse']);
                     ^

ReferenceError: window is not defined

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions