kittykatattack / learningPixi

A step-by-step introduction to making games and interactive media with the Pixi.js rendering engine.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot compile beginning lines of tutorial - TS

michaelmoreno opened this issue · comments

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

commented

that's doesn't matter