kittykatattack / learningPixi

A step-by-step introduction to making games and interactive media with the Pixi.js rendering engine.
4.4k stars 851 forks source link

Cannot compile beginning lines of tutorial - TS #168

Open michaelmoreno opened 1 year ago

michaelmoreno commented 1 year ago

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

313258196 commented 1 year ago

that's doesn't matter