Skip to content

Cannot compile beginning lines of tutorial - TS #168

@michaelmoreno

Description

@michaelmoreno

Following the guide on github, I have

import * as PIXI from 'pixi.js';

//Create a Pixi Application
const app = new PIXI.Application({width: 256, height: 256});

//Add the canvas that Pixi automatically created for you to the HTML document
document.body.appendChild(app.view);

When I try to compile I get

TS2345: Argument of type 'ICanvas' is not assignable to parameter of type 'Node'.
  Type 'ICanvas' is missing the following properties from type 'Node': baseURI, childNodes, firstChild, isConnected, and 42 more.

on the last line

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