Skip to content

appendVDom need real dom #101

Open
Open
@artemave

Description

@artemave

This code

hyperdom.appendVDom(h('div'), {render: () => 'hello'})

Fails with

     ReferenceError: window is not defined
      at new Mount (node_modules/hyperdom/mount.js:10:44)
      at start (node_modules/hyperdom/rendering.js:64:15)
      at startAttachment (node_modules/hyperdom/rendering.js:56:12)
      at Object.exports.appendVDom (node_modules/hyperdom/rendering.js:34:10)
      at Context.<anonymous> (test/hyperdomIntegrationSpec.js:44:14)

Looks as if deep down hyperdom relies on real window and document being available.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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