Skip to content

van.add() method not supported? #20

Description

@trymeouteh

I am unable to produce a simple example with mini-van package since it always causes an error with van.add() method. It even shows in the Mini-Van docs that Mini Van supports the van.add() method.

The simple example

<script type="module">
    import van from './node_modules/mini-van-plate/src/van-plate.js';

    const { h1 } = van.tags

    van.add(document.body, h1('Hello World'))
</script>

The error itself

Uncaught TypeError: dom.children.push is not a function
    add http://localhost:8080/node_modules/mini-van-plate/src/van-plate.js:85
    <anonymous> http://localhost:8080/mini-van.html:6

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